Naruto322
Active User
- Joined
- Jan 27, 2009
- Messages
- 51
- Reaction score
- 0
Witam. Posiadam silnik TFS 0.3.6 i tworz? ots bleach. Wszystko jest dobrze tylko mam problem z komend? transform Gdy wpisuj? transform wywala mi debuga M?cz? si? z tym ju? 2 dni i nie mog? znale?? rozwi?zania. O to skrypt transform: [dam tylko ichigo i rukie bo te voce dopiero mam zrobione(all formy jak co?)]
I jeszcze d??
rukia = { lookType = 70, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
ichigo = { lookType = 62, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
zaraki = { lookType = 50, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
ishida = { lookType = 51, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
renji = { lookType = 5, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
byakuya = { lookType = 30, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
neliel = { lookType = 37, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
ulquiorra = { lookType = 103, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
hitsugaya = { lookType = 6, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
grimmjow = { lookType = 159, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
if words == "revert" then
pos = getPlayerPosition(cid)
pos2 = getPlayerPosition(cid)
if voc == 50 or voc == 150 or voc == 250 or voc == 350 then -- Rukia
doPlayerSetVocation(cid, 1)
doSetCreatureOutfit(cid, rukia, -1)
doSendMagicEffect(pos2, 17)
doPlayerSay(cid,"revert",16)
elseif voc == 60 or voc == 160 or voc == 260 or voc == 360 then -- Ichigo
doPlayerSetVocation(cid, 2)
doSetCreatureOutfit(cid, ichigo, -1)
doSendMagicEffect(pos2, 17)
doPlayerSay(cid,"revert",16)
I jeszcze d??
local function transform(parameters)
voc = getPlayerVocation(cid)
lvl = getPlayerLevel(cid)
mana = getPlayerMana(cid)
rukia50 = { lookType = 138, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
rukia150 = { lookType = 125, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
rukia250 = { lookType = 284, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
rukia350 = { lookType = 296, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
ichigo60 = { lookType = 83, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
ichigo160 = { lookType = 8, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
ichigo260 = { lookType = 59, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
ichigo360 = { lookType = 52, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
if words == "transform" then
pos3 = getPlayerPosition(cid)
if voc == 1 then -- Rukia 1 trans
if lvl >= 50 then
if mana >= 50 then
doPlayerSetVocation(cid,50)
doSetCreatureOutfit(cid, rukia50, 240000)
doPlayerAddMana(cid, -50)
doSendMagicEffect(pos3, 17)
doPlayerSay(cid,"transform",16)
else
doPlayerSendCancel(cid, "Wymagane 100 Many.")
doSendMagicEffect(pos3, 2)
end
else
doPlayerSendCancel(cid, "Wymagany 50 lvl.")
doSendMagicEffect(pos3, 2)
end
elseif voc == 50 then -- Rukia 2 trans
if lvl >= 125 then
if mana >= 50 then
doPlayerSetVocation(cid,150)
doSetCreatureOutfit(cid, rukia150, 240000)
doPlayerAddMana(cid, -50)
doSendMagicEffect(pos3, 17)
doPlayerSay(cid,"transform",16)
else
doPlayerSendCancel(cid, "Wymagane 50 Many.")
doSendMagicEffect(pos3, 2)
end
else
doPlayerSendCancel(cid, "Wymagany 140 lvl.")
doSendMagicEffect(pos3, 2)
end
elseif voc == 150 then -- Rukia 3 trans
if lvl >= 215 then
if mana >= 50 then
doPlayerSetVocation(cid,250)
doSetCreatureOutfit(cid, rukia250, 240000)
doPlayerAddMana(cid, -50)
doSendMagicEffect(pos3, 17)
doPlayerSay(cid,"transform",16)
else
doPlayerSendCancel(cid, "Wymagane 50 Many.")
doSendMagicEffect(pos3, 2)
end
else
doPlayerSendCancel(cid, "Wymagany 250 lvl.")
doSendMagicEffect(pos3, 2)
end
elseif voc == 250 then -- Rukia 4 trans
if lvl >= 290 then
if mana >= 50 then
doPlayerSetVocation(cid,350)
doSetCreatureOutfit(cid, rukia350, 240000)
doPlayerAddMana(cid, -50)
doSendMagicEffect(pos3, 17)
doPlayerSay(cid,"transform",16)
else
doPlayerSendCancel(cid, "Wymagane 50 Many.")
doSendMagicEffect(pos3, 2)
end
else
doPlayerSendCancel(cid, "Wymagany 350 lvl.")
doSendMagicEffect(pos3, 2)
end
elseif voc == 2 then -- Ichigo 1 trans
if lvl >= 50 then
if mana >= 50 then
doPlayerSetVocation(cid,60)
doSetCreatureOutfit(cid, ichigo60, 240000)
doPlayerAddMana(cid, -50)
doSendMagicEffect(pos3, 17)
doPlayerSay(cid,"transform",16)
else
doPlayerSendCancel(cid, "Wymagane 50 Many.")
doSendMagicEffect(pos3, 2)
end
else
doPlayerSendCancel(cid, "Wymagany 50 lvl.")
doSendMagicEffect(pos3, 2)
end
elseif voc == 60 then -- Ichigo 2 trans
if lvl >= 120 then
if mana >= 50 then
doPlayerSetVocation(cid,160)
doSetCreatureOutfit(cid, ichigo160, 240000)
doPlayerAddMana(cid, -50)
doSendMagicEffect(pos3, 17)
doPlayerSay(cid,"transform",16)
else
doPlayerSendCancel(cid, "Wymagane 50 Many.")
doSendMagicEffect(pos3, 2)
end
else
doPlayerSendCancel(cid, "Wymagany 140 lvl.")
doSendMagicEffect(pos3, 2)
end
elseif voc == 160 then -- Ichigo 3 trans
if lvl >= 210 then
if mana >= 50 then
doPlayerSetVocation(cid,260)
doSetCreatureOutfit(cid, ichigo260, 240000)
doPlayerAddMana(cid, -50)
doSendMagicEffect(pos3, 17)
doPlayerSay(cid,"transform",16)
else
doPlayerSendCancel(cid, "Wymagane 50 Many.")
doSendMagicEffect(pos3, 2)
end
else
doPlayerSendCancel(cid, "Wymagany 250 lvl.")
doSendMagicEffect(pos3, 2)
end
elseif voc == 260 then -- Ichigo 4 trans
if lvl >= 285 then
if mana >= 50 then
doPlayerSetVocation(cid,360)
doSetCreatureOutfit(cid, ichigo360, 240000)
doPlayerAddMana(cid, -50)
doSendMagicEffect(pos3, 17)
doPlayerSay(cid,"transform",16)
else
doPlayerSendCancel(cid, "Wymagane 50 Many.")
doSendMagicEffect(pos3, 2)
end
else
doPlayerSendCancel(cid, "Wymagany 350 lvl.")
doSendMagicEffect(pos3, 2)
end