kuba1418
Banned
- Joined
- Apr 12, 2008
- Messages
- 178
- Reaction score
- 17
A wien mam problem z skryptem wydaje mi sie ze wszystko zrobi?em dobrze ,a niedzia?a tak jak chcia??m ;/ o to Muj skrtypt
Prosze o pomoc
. Silnik evo 8.1
@edit
Przepraszam niezawazy?em ze napisa??m POST w z?ym dziale prosze o usuniecie Postu. IM SORRY
Jak za?ocze Ots wyskakujom jakie? b?endy i SMP dzia?a jak na rl czyli 50lvl mana 200-400 a chcia? bym zeby by? od 300lvl i dawal 1000-3000playerpos = {x=topos.x, y=topos.y, z=topos.z, stackpos=253}
player = getThingfromPos(playerpos)
ml = getPlayerMagLevel(cid)
lvl = getPlayerLevel(cid)
voc = getPlayerVocation(cid)
ex = getPlayerStorageValue(cid,4862)
r1 = math.random(1000,3000)
params = { [1]=cid, [2]=lvl, [3]=voc, [4]=ml }
if item2.itemid == 1 then
if item.itemid == 7634 then
doPlayerSendCancel(cid,"It is empty.")
else
if item2.uid == cid then
if lvl >= 300 then
if voc == 1 or voc == 2 or voc == 3 or voc == 5 or voc == 6 or voc == 7 then
if ex == -1 then
doPlayerAddMana(cid,r1)
doSendMagicEffect(playerpos,12)
addEvent(ums,1000,params)
setPlayerStorageValue(cid,4862, 1)
doTransformItem(item.uid,7634)
doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE)
else
doPlayerSendCancel(cid,'You are exhausted!')
doSendMagicEffect(playerpos,2)
end
else
doPlayerSendCancel(cid, 'This potion can only be consumed by paladins, druids and sorcerers of level 300 or higher.')
end
else
doPlayerSendCancel(cid,'This potion can only be consumed by paladins, druids and sorcerers of level 300 or higher.')
end
else
splash = doCreateItem(1903,item.type,topos)
doTransformItem(item.uid,7634)
doDecayItem(splash)
end
end
else
if item.itemid == 7634 then
doPlayerSendCancel(cid,"It is empty.")
else
splash = doCreateItem(1903,item.type,topos)
doTransformItem(item.uid,7634)
doDecayItem(splash)
end
end
return 1
end
function ums(params)
cid = params[1]
setPlayerStorageValue(cid,4862, -1)
end
Prosze o pomoc
@edit
Przepraszam niezawazy?em ze napisa??m POST w z?ym dziale prosze o usuniecie Postu. IM SORRY
Last edited: