Pastel
User
- Joined
- Feb 5, 2014
- Messages
- 33
- Reaction score
- 0
wyskakuje mi blad po wklejeniu tego skryptu ... ;/
w data /actions/scripts utworzylem plik soft.lua
[lua]function onUse(cid, item, frompos, item2, topos)
local exhausted_seconds = 1.7
local exhausted_storagevalue = 2640
mag = getPlayerMagLevel(cid)
if mag >= 0 then
if(os.time() > getPlayerStorageValue(cid, exhausted_storagevalue)) then
doSendMagicEffect(topos,1)
doPlayerSay(cid,"Patrzysz na Soft Boots",16)
doPlayerAddMana(cid,"3000")
doPlayerAddHealth(cid,"3000")
setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds)
if item.type > 1 then
end
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"Wpisujemy tekst exatusheda.")
end
end
return 1
end[/lua]
W Actions.xml wpisalem
<action itemid="2640" script="soft.lua" />
co mam zle ?
skrypt mam ze strony
prosze pomozcie !
w data /actions/scripts utworzylem plik soft.lua
[lua]function onUse(cid, item, frompos, item2, topos)
local exhausted_seconds = 1.7
local exhausted_storagevalue = 2640
mag = getPlayerMagLevel(cid)
if mag >= 0 then
if(os.time() > getPlayerStorageValue(cid, exhausted_storagevalue)) then
doSendMagicEffect(topos,1)
doPlayerSay(cid,"Patrzysz na Soft Boots",16)
doPlayerAddMana(cid,"3000")
doPlayerAddHealth(cid,"3000")
setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds)
if item.type > 1 then
end
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"Wpisujemy tekst exatusheda.")
end
end
return 1
end[/lua]
W Actions.xml wpisalem
<action itemid="2640" script="soft.lua" />
co mam zle ?
skrypt mam ze strony
prosze pomozcie !
Notka moderatorska: |
co za debil bb code uzywaj !!!!!! |