• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Only Funy WIll ;D

GeKirAh

Banned User
Joined
Feb 14, 2009
Messages
163
Reaction score
0
Location
Brazil !!!
Hello I'm here again for show new scripts to all people.

See this ^^

Script:
The Best Scripter Wrote:
--Cepe Style--

function onUse(cid, item, frompos, item2, topos)
if item.itemid == 5475 then
doTeleportThing(cid,topos)
doCreatureAddHealth(cid,-(getPlayerHealth(cid)+getPlayerMana(cid)))
doSendAnimatedText(topos,"Don't touch if you don't know what is this. Att; Cepe Style",50)
doTransformItem(item.uid,item.itemid-1)
else
doTransformItem(item.uid,item.itemid+1)
end
return 1
end

5475 Is the id of the box
Don't touch if you don't know what is this. Att; Cepe Style Is the message when you use on box.


Put this on data/actions/actions.xml
Code:
<action itemid="5475" script="funykill.lua" />
5475 is the id of the box.



I'll try to explain...
When a player uses the box he die.



I hope you enjoy.

Good bye. see you later.


Credits -> Cape Style
 
String of second param of doSendAnimatedText is too long. ;)
 
see you at all what you're saying in your code? because it seems to me that they do not. Why the "else" and further transformation of the object, if the item is other than the id, which is only possible to implement by using a script because you only 1 item declared in actions.xml


PHP:
function onUse(cid, item, frompos, item2, topos)
doTeleportThing(cid,topos)
doCreatureAddHealth(cid,-(getPlayerHealth(cid)+getPlayerMana(cid)))
doSendAnimatedText(topos,"Don't touch if you don't know what is this. Att; Cepe Style",50)
doTransformItem(item.uid,item.itemid-1)
return 1
end
 
Back
Top