Lukanio
### Own3D ###
- Joined
- Nov 25, 2008
- Messages
- 325
- Reaction score
- 6
Script don't work
PLX HELP :wub:
PHP:
function onUse(cid, item, frompos, item2, topos)
local vocation = getPlayerVocation(cid)
if item.uid == 7001 then
if(isDruid or isSorcerer and getPlayerStorageValue(cid,7001) == -1) then
doPlayerAddItem(cid,2323,1)
doPlayerAddItem(cid,8870,1)
doPlayerAddItem(cid,7457,1)
setPlayerStorageValue(cid,7001,1)
else
doPlayerSendTextMessage(cid,22,"To jest puste.")
end
elseif(isKnight or isPaladin and getPlayerStorageValue(cid,7001) == -1) then
doPlayerAddItem(cid,2491,1)
doPlayerAddItem(cid,2477,1)
doPlayerAddItem(cid,2476,1)
doPlayerAddItem(cid,7457,1)
setPlayerStorageValue(cid,7001,1)
else
doPlayerSendTextMessage(cid,22,"To jest puste.")
end
end
if item.uid == 7002 then
if(isDruid or isSorcerer and getPlayerStorageValue(cid,7002) == -1) then
doPlayerAddItem(cid,10016,1)
doPlayerAddItem(cid,7730,1)
doPlayerAddItem(cid,8871,1)
setPlayerStorageValue(cid,7002,2)
else
doPlayerSendTextMessage(cid,22,"To jest puste.")
end
elseif(isKnight and getPlayerStorageValue(cid,7002) == -1) then
doPlayerAddItem(cid,2498,1)
doPlayerAddItem(cid,2488,1)
doPlayerAddItem(cid,2466,1)
setPlayerStorageValue(cid,7002,2)
else
doPlayerSendTextMessage(cid,22,"To jest puste.")
end
elseif(isPaladin and getPlayerStorageValue(cid,7002) == -1) then
doPlayerAddItem(cid,2498,1)
doPlayerAddItem(cid,2488,1)
doPlayerAddItem(cid,8891,1)
setPlayerStorageValue(cid,7003,2)
else
doPlayerSendTextMessage(cid,22,"To jest puste.")
end
end
if item.uid == 7003 then
if(isDruid or isSorcerer and getPlayerStorageValue(cid,7003) == -1) then
doPlayerAddItem(cid,2500,1)
doPlayerAddItem(cid,2499,1)
setPlayerStorageValue(cid,7003,1)
else
doPlayerSendTextMessage(cid,22,"To jest puste.")
end
elseif(isKnight or isPaladin and getPlayerStorageValue(cid,7003) == -1) then
doPlayerAddItem(cid,5741,1)
doPlayerAddItem(cid,2470,1)
doPlayerAddItem(cid,2472,1)
setPlayerStorageValue(cid,7003,1)
else
doPlayerSendTextMessage(cid,22,"To jest puste.")
end
end
return 1
end
PLX HELP :wub: