Mam taki skrypt:
Do tego:
Jak otwieram chesta to otwiera sie pusty chest bez nauki czaru.
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(getPlayerLearnedInstantSpell(cid, parameters.spellName)) then
doPlayerSendCancel(cid, 'You already know this spell.')
return true
end
playerLearnInstantSpell(cid, "Thunder Lights")
return true
end
Do tego:
W spellach jest need learn i nazwa jest dobra.<action uniqueid="61893" script="czary/jedynka.lua" />
Jak otwieram chesta to otwiera sie pusty chest bez nauki czaru.