Mam taki skrypt co daje dany spell jak zrobiym quest. Ale w tym przypadku chc? aby dla kazdej profy kazdy czar byl inny , gdy bys ktos byl taki mily i by przerobil moj skrypt lub podal to dam reputacje.
Skrypt
[LUA]function onUse(cid, item, fromPosition, itemEx, toPosition)
local spellname = "Hell Slayer Ex"
if(getPlayerLearnedInstantSpell(cid,spellname)) == 1 then
doPlayerSendTextMessage(cid,18 , "You already learned that spell.")
doSendMagicEffect(getCreaturePosition(cid), 2)
else
playerLearnInstantSpell(cid,spellname)
doPlayerSendTextMessage(cid, 18, 'Quest Complete. | You have learned "Death Flash"!.')
doSendMagicEffect(getCreaturePosition(cid), 6)
addLevel(cid,1)
doPlayerAddItem(cid,2673,100)
doPlayerAddItem(cid,2673,100)
end
return true
end[/LUA]
Skrypt
[LUA]function onUse(cid, item, fromPosition, itemEx, toPosition)
local spellname = "Hell Slayer Ex"
if(getPlayerLearnedInstantSpell(cid,spellname)) == 1 then
doPlayerSendTextMessage(cid,18 , "You already learned that spell.")
doSendMagicEffect(getCreaturePosition(cid), 2)
else
playerLearnInstantSpell(cid,spellname)
doPlayerSendTextMessage(cid, 18, 'Quest Complete. | You have learned "Death Flash"!.')
doSendMagicEffect(getCreaturePosition(cid), 6)
addLevel(cid,1)
doPlayerAddItem(cid,2673,100)
doPlayerAddItem(cid,2673,100)
end
return true
end[/LUA]
