What's new

Skrypty & Kody Transform System!

Status
Not open for further replies.

Restles

Senior User
Joined
Aug 31, 2012
Messages
616
Reaction score
51
Witam, poszukuje rozwi?zania co do transform systemu, mianowicie chodzi mi o gdy robi? posta? o id 1 z kt?rym mam transy normalnie si? wy?wietlaj? ale gdy zrobi? posta? o id 2 to gdy zn?w wpisuje transform to pokazuj? mi si? u niego transy z id 1 chodz w pliku s? normalnie dopisane transy do id 2 itd
Kod Trans?w:
Code:
function onSay(cid, words, param)
local effect = 13
    if getPlayerVocation(cid) == 1 and getPlayerLevel(cid) >= 25 then ---Naruto Transform
        doPlayerSetVocation(cid, 2)
        local outfit = {lookType = 66 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 25 then
        doPlayerSendCancel(cid, "You need 25 level to transform!")
	elseif getPlayerVocation(cid) == 2 and getPlayerLevel(cid) >= 50 then
        doPlayerSetVocation(cid, 3)
        local outfit = {lookType = 91 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 50 then
        doPlayerSendCancel(cid, "You need 50 level to transform!")
	elseif getPlayerVocation(cid) == 3 and getPlayerLevel(cid) >= 75 then
        doPlayerSetVocation(cid, 4)
        local outfit = {lookType = 18 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 75 then
        doPlayerSendCancel(cid, "You need 75 level to transform!")
	elseif getPlayerVocation(cid) == 4 and getPlayerLevel(cid) >= 100 then
        doPlayerSetVocation(cid, 5)
        local outfit = {lookType = 31 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 100 then
        doPlayerSendCancel(cid, "You need 100 level to transform!")
	elseif getPlayerVocation(cid) == 5 and getPlayerLevel(cid) >= 125 then
        doPlayerSetVocation(cid, 6)
        local outfit = {lookType = 92 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 125 then
        doPlayerSendCancel(cid, "You need 125 level to transform!")
	elseif getPlayerVocation(cid) == 6 and getPlayerLevel(cid) >= 150 then
        doPlayerSetVocation(cid, 7)
        local outfit = {lookType = 77 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 150 then
        doPlayerSendCancel(cid, "You need 150 level to transform!")
	elseif getPlayerVocation(cid) == 7 and getPlayerLevel(cid) >= 175 then
        doPlayerSetVocation(cid, 8)
        local outfit = {lookType = 49 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 175 then
        doPlayerSendCancel(cid, "You need 175 level to transform!")
	elseif getPlayerVocation(cid) == 8 and getPlayerLevel(cid) >= 200 then
        doPlayerSetVocation(cid, 9)
        local outfit = {lookType = 25 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 200 then
        doPlayerSendCancel(cid, "You need 200 level to transform!")
	elseif getPlayerVocation(cid) == 9 and getPlayerLevel(cid) >= 230 then
        doPlayerSetVocation(cid, 10)
        local outfit = {lookType = 179 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 130)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 230 then
        doPlayerSendCancel(cid, "You need 230 level to transform!")
    else
		doPlayerSendCancel(cid, "It is your last transform.")
	end
	if getPlayerVocation(cid) == 11 and getPlayerLevel(cid) >= 25 then ---Sasuke Transform
        doPlayerSetVocation(cid, 12)
        local outfit = {lookType = 93 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 25 then
        doPlayerSendCancel(cid, "You need 25 level to transform!")
	elseif getPlayerVocation(cid) == 12 and getPlayerLevel(cid) >= 50 then
        doPlayerSetVocation(cid, 13)
        local outfit = {lookType = 6 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 50 then
        doPlayerSendCancel(cid, "You need 50 level to transform!")
	elseif getPlayerVocation(cid) == 13 and getPlayerLevel(cid) >= 75 then
        doPlayerSetVocation(cid, 14)
        local outfit = {lookType = 5 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 75 then
        doPlayerSendCancel(cid, "You need 75 level to transform!")
	elseif getPlayerVocation(cid) == 14 and getPlayerLevel(cid) >= 100 then
        doPlayerSetVocation(cid, 15)
        local outfit = {lookType = 7 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 100 then
        doPlayerSendCancel(cid, "You need 100 level to transform!")
	elseif getPlayerVocation(cid) == 15 and getPlayerLevel(cid) >= 125 then
        doPlayerSetVocation(cid, 16)
        local outfit = {lookType = 94 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 125 then
        doPlayerSendCancel(cid, "You need 125 level to transform!")
	elseif getPlayerVocation(cid) == 16 and getPlayerLevel(cid) >= 150 then
        doPlayerSetVocation(cid, 17)
        local outfit = {lookType = 59 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 150 then
        doPlayerSendCancel(cid, "You need 150 level to transform!")
	elseif getPlayerVocation(cid) == 17 and getPlayerLevel(cid) >= 175 then
        doPlayerSetVocation(cid, 18)
        local outfit = {lookType = 8 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 175 then
        doPlayerSendCancel(cid, "You need 175 level to transform!")
	elseif getPlayerVocation(cid) == 18 and getPlayerLevel(cid) >= 200 then
        doPlayerSetVocation(cid, 19)
        local outfit = {lookType = 178 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 200 then
        doPlayerSendCancel(cid, "You need 200 level to transform!")
	elseif getPlayerVocation(cid) == 19 and getPlayerLevel(cid) >= 230 then
        doPlayerSetVocation(cid, 20)
        local outfit = {lookType = 95 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 130)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 230 then
        doPlayerSendCancel(cid, "You need 230 level to transform!")
    else
		doPlayerSendCancel(cid, "It is your last transform.")
	end
	if getPlayerVocation(cid) == 21 and getPlayerLevel(cid) >= 25 then ---Sakura Transform
        doPlayerSetVocation(cid, 22)
        local outfit = {lookType = 175 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 25 then
        doPlayerSendCancel(cid, "You need 25 level to transform!")
	elseif getPlayerVocation(cid) == 22 and getPlayerLevel(cid) >= 50 then
        doPlayerSetVocation(cid, 23)
        local outfit = {lookType = 173 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 50 then
        doPlayerSendCancel(cid, "You need 50 level to transform!")
	elseif getPlayerVocation(cid) == 23 and getPlayerLevel(cid) >= 75 then
        doPlayerSetVocation(cid, 24)
        local outfit = {lookType = 174 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 75 then
        doPlayerSendCancel(cid, "You need 75 level to transform!")
	elseif getPlayerVocation(cid) == 24 and getPlayerLevel(cid) >= 100 then
        doPlayerSetVocation(cid, 25)
        local outfit = {lookType = 169 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 100 then
        doPlayerSendCancel(cid, "You need 100 level to transform!")
	elseif getPlayerVocation(cid) == 25 and getPlayerLevel(cid) >= 125 then
        doPlayerSetVocation(cid, 26)
        local outfit = {lookType = 169 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), effect)
        doPlayerSendCancel(cid, "You transform!")
		efekt(cid, effect)
		elseif getPlayerLevel(cid) <= 125 then
        doPlayerSendCancel(cid, "You need 125 level to transform!")
	elseif getPlayerVocation(cid) == 26 and getPlayerLevel(cid) >= 150 then
        doPlayerSetVocation(cid, 27)
        local outfit = {lookType = 172 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 150 then
        doPlayerSendCancel(cid, "You need 150 level to transform!")
	elseif getPlayerVocation(cid) == 27 and getPlayerLevel(cid) >= 175 then
        doPlayerSetVocation(cid, 28)
        local outfit = {lookType = 194 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 175 then
        doPlayerSendCancel(cid, "You need 175 level to transform!")
	elseif getPlayerVocation(cid) == 28 and getPlayerLevel(cid) >= 200 then
        doPlayerSetVocation(cid, 29)
        local outfit = {lookType = 194 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), effect)
        doPlayerSendCancel(cid, "You transform!")
		efekt(cid, effect)
    elseif getPlayerLevel(cid) <= 200 then
        doPlayerSendCancel(cid, "You need 200 level to transform!")
	elseif getPlayerVocation(cid) == 29 and getPlayerLevel(cid) >= 230 then
        doPlayerSetVocation(cid, 30)
        local outfit = {lookType = 170 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 130)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 230 then
        doPlayerSendCancel(cid, "You need 230 level to transform!")
    else
		doPlayerSendCancel(cid, "It is your last transform.")
	end
	if getPlayerVocation(cid) == 31 and getPlayerLevel(cid) >= 25 then ---Gaara Transform
        doPlayerSetVocation(cid, 32)
        local outfit = {lookType = 53 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 25 then
        doPlayerSendCancel(cid, "You need 25 level to transform!")
	elseif getPlayerVocation(cid) == 32 and getPlayerLevel(cid) >= 50 then
        doPlayerSetVocation(cid, 33)
        local outfit = {lookType = 67 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 50 then
        doPlayerSendCancel(cid, "You need 50 level to transform!")
	elseif getPlayerVocation(cid) == 33 and getPlayerLevel(cid) >= 75 then
        doPlayerSetVocation(cid, 34)
        local outfit = {lookType = 72 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 75 then
        doPlayerSendCancel(cid, "You need 75 level to transform!")
	elseif getPlayerVocation(cid) == 34 and getPlayerLevel(cid) >= 100 then
        doPlayerSetVocation(cid, 35)
        local outfit = {lookType = 58 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 100 then
        doPlayerSendCancel(cid, "You need 100 level to transform!")
	elseif getPlayerVocation(cid) == 35 and getPlayerLevel(cid) >= 125 then
        doPlayerSetVocation(cid, 36)
        local outfit = {lookType = 189 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 125 then
        doPlayerSendCancel(cid, "You need 125 level to transform!")
	elseif getPlayerVocation(cid) == 36 and getPlayerLevel(cid) >= 150 then
        doPlayerSetVocation(cid, 37)
        local outfit = {lookType = 65 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 150 then
        doPlayerSendCancel(cid, "You need 150 level to transform!")
	elseif getPlayerVocation(cid) == 37 and getPlayerLevel(cid) >= 175 then
        doPlayerSetVocation(cid, 38)
        local outfit = {lookType = 188 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 175 then
        doPlayerSendCancel(cid, "You need 175 level to transform!")
	elseif getPlayerVocation(cid) == 38 and getPlayerLevel(cid) >= 200 then
        doPlayerSetVocation(cid, 39)
        local outfit = {lookType = 58 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 200 then
        doPlayerSendCancel(cid, "You need 200 level to transform!")
	elseif getPlayerVocation(cid) == 39 and getPlayerLevel(cid) >= 230 then
        doPlayerSetVocation(cid, 40)
        local outfit = {lookType = 187 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 130)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 230 then
        doPlayerSendCancel(cid, "You need 230 level to transform!")
    else
		doPlayerSendCancel(cid, "It is your last transform.")
	end
	if getPlayerVocation(cid) == 41 and getPlayerLevel(cid) >= 25 then ---Lee Transform
        doPlayerSetVocation(cid, 42)
        local outfit = {lookType = 60 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 25 then
        doPlayerSendCancel(cid, "You need 25 level to transform!")
	elseif getPlayerVocation(cid) == 42 and getPlayerLevel(cid) >= 50 then
        doPlayerSetVocation(cid, 43)
        local outfit = {lookType = 83 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 50 then
        doPlayerSendCancel(cid, "You need 50 level to transform!")
	elseif getPlayerVocation(cid) == 43 and getPlayerLevel(cid) >= 75 then
        doPlayerSetVocation(cid, 44)
        local outfit = {lookType = 82 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 75 then
        doPlayerSendCancel(cid, "You need 75 level to transform!")
	elseif getPlayerVocation(cid) == 44 and getPlayerLevel(cid) >= 100 then
        doPlayerSetVocation(cid, 45)
        local outfit = {lookType = 80 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 100 then
        doPlayerSendCancel(cid, "You need 100 level to transform!")
	elseif getPlayerVocation(cid) == 45 and getPlayerLevel(cid) >= 125 then
        doPlayerSetVocation(cid, 46)
        local outfit = {lookType = 190 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 125 then
        doPlayerSendCancel(cid, "You need 125 level to transform!")
	elseif getPlayerVocation(cid) == 46 and getPlayerLevel(cid) >= 150 then
        doPlayerSetVocation(cid, 47)
        local outfit = {lookType = 78 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 150 then
        doPlayerSendCancel(cid, "You need 150 level to transform!")
	elseif getPlayerVocation(cid) == 47 and getPlayerLevel(cid) >= 175 then
        doPlayerSetVocation(cid, 48)
        local outfit = {lookType = 191 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 175 then
        doPlayerSendCancel(cid, "You need 175 level to transform!")
	elseif getPlayerVocation(cid) == 48 and getPlayerLevel(cid) >= 200 then
        doPlayerSetVocation(cid, 49)
        local outfit = {lookType = 192 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 200 then
        doPlayerSendCancel(cid, "You need 200 level to transform!")
	elseif getPlayerVocation(cid) == 49 and getPlayerLevel(cid) >= 230 then
        doPlayerSetVocation(cid, 50)
        local outfit = {lookType = 193 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 130)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 230 then
        doPlayerSendCancel(cid, "You need 230 level to transform!")
    else
		doPlayerSendCancel(cid, "It is your last transform.")
	end
	if getPlayerVocation(cid) == 51 and getPlayerLevel(cid) >= 25 then ---Neji Transform
        doPlayerSetVocation(cid, 52)
        local outfit = {lookType = 101 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 25 then
        doPlayerSendCancel(cid, "You need 25 level to transform!")
	elseif getPlayerVocation(cid) == 52 and getPlayerLevel(cid) >= 50 then
        doPlayerSetVocation(cid, 53)
        local outfit = {lookType = 103 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 50 then
        doPlayerSendCancel(cid, "You need 50 level to transform!")
	elseif getPlayerVocation(cid) == 53 and getPlayerLevel(cid) >= 75 then
        doPlayerSetVocation(cid, 54)
        local outfit = {lookType = 103 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
		efekt(cid, effect)
    elseif getPlayerLevel(cid) <= 75 then
        doPlayerSendCancel(cid, "You need 75 level to transform!")
	elseif getPlayerVocation(cid) == 54 and getPlayerLevel(cid) >= 100 then
        doPlayerSetVocation(cid, 55)
        local outfit = {lookType = 107 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
		elseif getPlayerLevel(cid) <= 100 then
        doPlayerSendCancel(cid, "You need 100 level to transform!")
	elseif getPlayerVocation(cid) == 55 and getPlayerLevel(cid) >= 125 then
        doPlayerSetVocation(cid, 56)
        local outfit = {lookType = 107 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
		efekt(cid, effect)
    elseif getPlayerLevel(cid) <= 125 then
        doPlayerSendCancel(cid, "You need 125 level to transform!")
	elseif getPlayerVocation(cid) == 56 and getPlayerLevel(cid) >= 150 then
        doPlayerSetVocation(cid, 57)
        local outfit = {lookType = 105 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 150 then
        doPlayerSendCancel(cid, "You need 150 level to transform!")
	elseif getPlayerVocation(cid) == 57 and getPlayerLevel(cid) >= 175 then
        doPlayerSetVocation(cid, 58)
        local outfit = {lookType = 105 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
		efekt(cid, effect)
    elseif getPlayerLevel(cid) <= 175 then
        doPlayerSendCancel(cid, "You need 175 level to transform!")
	elseif getPlayerVocation(cid) == 58 and getPlayerLevel(cid) >= 200 then
        doPlayerSetVocation(cid, 59)
        local outfit = {lookType = 108 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 200 then
        doPlayerSendCancel(cid, "You need 200 level to transform!")
	elseif getPlayerVocation(cid) == 59 and getPlayerLevel(cid) >= 230 then
        doPlayerSetVocation(cid, 60)
        local outfit = {lookType = 108 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 130)
        doPlayerSendCancel(cid, "You transform!")
		efekt(cid, effect)
    elseif getPlayerLevel(cid) <= 230 then
        doPlayerSendCancel(cid, "You need 230 level to transform!")
    else
		doPlayerSendCancel(cid, "It is your last transform.")
	end
	if getPlayerVocation(cid) == 61 and getPlayerLevel(cid) >= 25 then ---Kiba Transform
        doPlayerSetVocation(cid, 62)
        local outfit = {lookType = 69 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 25 then
        doPlayerSendCancel(cid, "You need 25 level to transform!")
	elseif getPlayerVocation(cid) == 62 and getPlayerLevel(cid) >= 50 then
        doPlayerSetVocation(cid, 63)
        local outfit = {lookType = 70 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 50 then
        doPlayerSendCancel(cid, "You need 50 level to transform!")
	elseif getPlayerVocation(cid) == 63 and getPlayerLevel(cid) >= 75 then
        doPlayerSetVocation(cid, 64)
        local outfit = {lookType = 36 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 75 then
        doPlayerSendCancel(cid, "You need 75 level to transform!")
	elseif getPlayerVocation(cid) == 64 and getPlayerLevel(cid) >= 100 then
        doPlayerSetVocation(cid, 65)
        local outfit = {lookType = 84 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
		elseif getPlayerLevel(cid) <= 100 then
        doPlayerSendCancel(cid, "You need 100 level to transform!")
	elseif getPlayerVocation(cid) == 65 and getPlayerLevel(cid) >= 125 then
        doPlayerSetVocation(cid, 66)
        local outfit = {lookType = 196 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 125 then
        doPlayerSendCancel(cid, "You need 125 level to transform!")
	elseif getPlayerVocation(cid) == 66 and getPlayerLevel(cid) >= 150 then
        doPlayerSetVocation(cid, 67)
        local outfit = {lookType = 197 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 150 then
        doPlayerSendCancel(cid, "You need 150 level to transform!")
	elseif getPlayerVocation(cid) == 67 and getPlayerLevel(cid) >= 175 then
        doPlayerSetVocation(cid, 68)
        local outfit = {lookType = 198 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 175 then
        doPlayerSendCancel(cid, "You need 175 level to transform!")
	elseif getPlayerVocation(cid) == 68 and getPlayerLevel(cid) >= 200 then
        doPlayerSetVocation(cid, 69)
        local outfit = {lookType = 199 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 200 then
        doPlayerSendCancel(cid, "You need 200 level to transform!")
	elseif getPlayerVocation(cid) == 69 and getPlayerLevel(cid) >= 230 then
        doPlayerSetVocation(cid, 70)
        local outfit = {lookType = 200 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 130)
        doPlayerSendCancel(cid, "You transform!")
		efekt(cid, effect)
    elseif getPlayerLevel(cid) <= 230 then
        doPlayerSendCancel(cid, "You need 230 level to transform!")
    else
		doPlayerSendCancel(cid, "It is your last transform.")
	end
	if getPlayerVocation(cid) == 71 and getPlayerLevel(cid) >= 25 then ---Itachi Transform
        doPlayerSetVocation(cid, 72)
        local outfit = {lookType = 97 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 25 then
        doPlayerSendCancel(cid, "You need 25 level to transform!")
	elseif getPlayerVocation(cid) == 72 and getPlayerLevel(cid) >= 50 then
        doPlayerSetVocation(cid, 73)
        local outfit = {lookType = 282 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 50 then
        doPlayerSendCancel(cid, "You need 50 level to transform!")
	elseif getPlayerVocation(cid) == 73 and getPlayerLevel(cid) >= 75 then
        doPlayerSetVocation(cid, 74)
        local outfit = {lookType = 98 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 75 then
        doPlayerSendCancel(cid, "You need 75 level to transform!")
	elseif getPlayerVocation(cid) == 74 and getPlayerLevel(cid) >= 100 then
        doPlayerSetVocation(cid, 75)
        local outfit = {lookType = 99 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
		elseif getPlayerLevel(cid) <= 100 then
        doPlayerSendCancel(cid, "You need 100 level to transform!")
	elseif getPlayerVocation(cid) == 75 and getPlayerLevel(cid) >= 125 then
        doPlayerSetVocation(cid, 76)
        local outfit = {lookType = 283 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 125 then
        doPlayerSendCancel(cid, "You need 125 level to transform!")
	elseif getPlayerVocation(cid) == 76 and getPlayerLevel(cid) >= 150 then
        doPlayerSetVocation(cid, 77)
        local outfit = {lookType = 284 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 150 then
        doPlayerSendCancel(cid, "You need 150 level to transform!")
	elseif getPlayerVocation(cid) == 77 and getPlayerLevel(cid) >= 175 then
        doPlayerSetVocation(cid, 78)
        local outfit = {lookType = 100 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 175 then
        doPlayerSendCancel(cid, "You need 175 level to transform!")
	elseif getPlayerVocation(cid) == 78 and getPlayerLevel(cid) >= 200 then
        doPlayerSetVocation(cid, 79)
        local outfit = {lookType = 100 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
		efekt(cid, effect)
    elseif getPlayerLevel(cid) <= 200 then
        doPlayerSendCancel(cid, "You need 200 level to transform!")
	elseif getPlayerVocation(cid) == 79 and getPlayerLevel(cid) >= 230 then
        doPlayerSetVocation(cid, 80)
        local outfit = {lookType = 285 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 130)
        doPlayerSendCancel(cid, "You transform!")
		efekt(cid, effect)
    elseif getPlayerLevel(cid) <= 230 then
        doPlayerSendCancel(cid, "You need 230 level to transform!")
    else
		doPlayerSendCancel(cid, "It is your last transform.")
	end
	if getPlayerVocation(cid) == 81 and getPlayerLevel(cid) >= 25 then ---Kakashi Transform
        doPlayerSetVocation(cid, 82)
        local outfit = {lookType = 11 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 25 then
        doPlayerSendCancel(cid, "You need 25 level to transform!")
	elseif getPlayerVocation(cid) == 82 and getPlayerLevel(cid) >= 50 then
        doPlayerSetVocation(cid, 83)
        local outfit = {lookType = 287 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 50 then
        doPlayerSendCancel(cid, "You need 50 level to transform!")
	elseif getPlayerVocation(cid) == 83 and getPlayerLevel(cid) >= 75 then
        doPlayerSetVocation(cid, 84)
        local outfit = {lookType = 12 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 75 then
        doPlayerSendCancel(cid, "You need 75 level to transform!")
	elseif getPlayerVocation(cid) == 84 and getPlayerLevel(cid) >= 100 then
        doPlayerSetVocation(cid, 85)
        local outfit = {lookType = 289 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
		elseif getPlayerLevel(cid) <= 100 then
        doPlayerSendCancel(cid, "You need 100 level to transform!")
	elseif getPlayerVocation(cid) == 85 and getPlayerLevel(cid) >= 125 then
        doPlayerSetVocation(cid, 86)
        local outfit = {lookType = 10 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 125 then
        doPlayerSendCancel(cid, "You need 125 level to transform!")
	elseif getPlayerVocation(cid) == 86 and getPlayerLevel(cid) >= 150 then
        doPlayerSetVocation(cid, 87)
        local outfit = {lookType = 13 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 150 then
        doPlayerSendCancel(cid, "You need 150 level to transform!")
	elseif getPlayerVocation(cid) == 87 and getPlayerLevel(cid) >= 175 then
        doPlayerSetVocation(cid, 88)
        local outfit = {lookType = 289 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
    elseif getPlayerLevel(cid) <= 175 then
        doPlayerSendCancel(cid, "You need 175 level to transform!")
	elseif getPlayerVocation(cid) == 88 and getPlayerLevel(cid) >= 200 then
        doPlayerSetVocation(cid, 89)
        local outfit = {lookType = 13 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 13)
        doPlayerSendCancel(cid, "You transform!")
		efekt(cid, effect)
    elseif getPlayerLevel(cid) <= 200 then
        doPlayerSendCancel(cid, "You need 200 level to transform!")
	elseif getPlayerVocation(cid) == 89 and getPlayerLevel(cid) >= 230 then
        doPlayerSetVocation(cid, 90)
        local outfit = {lookType = 288 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        doSetCreatureOutfit(cid, outfit, -1)
        doSendMagicEffect(getCreaturePosition(cid), 130)
        doPlayerSendCancel(cid, "You transform!")
		efekt(cid, effect)
    elseif getPlayerLevel(cid) <= 230 then
        doPlayerSendCancel(cid, "You need 230 level to transform!")
    else
		doPlayerSendCancel(cid, "It is your last transform.")
	end
	return true
end

function efekt(cid, effect)
if(isPlayer(cid) == false) then
	return false
end
doSendMagicEffect(getPlayerPosition(cid),effect)
addEvent(efekt,1000,cid,effect)
return true
end
 

NygusDB

Advanced User
Joined
Mar 5, 2013
Messages
164
Reaction score
7
Odp: Transform System!

Masz okropny skrypt. Napisa?em ci wg twojego wzoru 2 transy dla Naruto, reszt? zmie? sam.
PHP:
function onSay(cid, words, param)
local effect = 13


	if getPlayerVocation(cid) == 1 ---Naruto Transform
		if getPlayerLevel(cid) >= 25 then 
       	 		local outfit = {lookType = 66 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        		doPlayerSetVocation(cid, 2)

        		doSetCreatureOutfit(cid, outfit, -1)
        		doSendMagicEffect(getCreaturePosition(cid), 13)
        		doPlayerSendCancel(cid, "You transform!")
    		else 
        	doPlayerSendCancel(cid, "You need 25 level to transform!")
		end
	elseif getPlayerVocation(cid) == 2 
		if getPlayerLevel(cid) >= 50 then
        		doPlayerSetVocation(cid, 3)
        		local outfit = {lookType = 91 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
        		doSetCreatureOutfit(cid, outfit, -1)
        		doSendMagicEffect(getCreaturePosition(cid), 13)
        		doPlayerSendCancel(cid, "You transform!")
    		else 
        	doPlayerSendCancel(cid, "You need 25 level to transform!")
		end
    	else
	doPlayerSendCancel(cid, "It is your last transform.")
    	end
	
return true
end

function efekt(cid, effect)
if(isPlayer(cid) == false) then
	return false
end
doSendMagicEffect(getPlayerPosition(cid),effect)
addEvent(efekt,1000,cid,effect)
return true
end
 
Last edited:
Status
Not open for further replies.
Top