Skrypty & Kody Pomozesz?

Status
Zamknięty.

nequki

Active User
Zarejestrowany
Dołączył
Listopad 10, 2012
Posty
53
Liczba reakcji
1
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]
 
Odp: Pomozesz?

Nie wiem czy dzia?a musisz zobaczy? :)

[LUA] function onUse(cid, item, frompos, item2, topos)

elseif item.uid == 50046 then
queststatus = getPlayerStorageValue(cid,50046)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,'You have got learned Death Flash!')
playerLearnInstantSpell(cid, "Death Flash")
setPlayerStorageValue(cid,50046,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end[/LUA]

[XML] <action actionid="50046" event="script" value="quests/questy.lua"/>[/XML]

50046 to storage spella
 
Odp: Pomozesz?

Dziekuje Dantez.
Obaj dostaliscie reputacje za to ze chcieliscie pomoc:)
 
Status
Zamknięty.
Back
Do góry