• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Poprawa skryptu tfs 1.0

zxzxzx

New Member
Joined
Mar 12, 2011
Messages
334
Reaction score
3
Witam mam problem z pewnym skryptem, skrypt działa w 100% jest to przerobiony skrypt na skill scroll jednak że jest on dla określonej profesji np Knighta i może go używać tylko knight, głownym problemem jest tutaj profesja druida i sorcerera nie chciałbym robić osobno 2 skryptów dla pojedyńczej profesji ponieważ problem tkwi w tym że nie mogę dopisać 2 profesji dla tego skryptu bo wtedy nie działa, nw dlaczego próbowałem wiele sposobów i funkcji ale nic z tego oto skrypt:

function onUse(cid, item, frompos, item2, topos)
if isDruid(cid) == TRUE then
if getPlayerStorageValue(cid, 97569) < 0 then
local stor = getPlayerStorageValue(cid, 97569) + 1

doSendMagicEffect(getThingPos(cid),13)
doPlayerAddSkillTry(cid, 4, 300000)
doRemoveItem(item.uid,1)
setPlayerStorageValue(cid, 97569, stor)

else

doSendMagicEffect(getThingPos(cid),2)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Tej essencji mozesz uzyc tylko raz!.")

end


else
doSendMagicEffect(getThingPos(cid),2)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Nie Jestes Magiem....")


end




end





Cały problem tkwi w if isDruid(cid) == TRUE then chciałbym aby działał i dla Druida jak Sorcerera...


Za pomoc rep+ :)
 
Back
Top