• 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!

Request: Item: Change Outfit. and more.. ?

darkk

New Member
Joined
May 1, 2009
Messages
15
Reaction score
0
Location
Las Vegas, US
Hello, I need help on this,

-1 Item on use, like a Ring, change your outfit.

-Can only use it 30 minutes. And u need wait 12 hrs to can use it again.

-It remove HP and Mana. (The Max HP, and Max Mana)
Like if your Max HP is 300hp, when you wear the Item your Max HP will be 150. (50% OF YOUR MAX HP)

-When you wear off the ring or the time end, you will automatically wear your default outfit and recover your Max HP.

Thanks,;)
 
Hum.. let me see...
this work? Edit something obviosly...

function onUse(cid, item, frompos, item2, topos)
level = getPlayerLevel(cid)


if level >= 35 then
if getPlayerStorageValue(cid,5555) == -1 then
doSetCreatureOutfit(cid, outfit, time )
setCreatureMaxHealth(cid, health)
setCreatureMaxMana(cid, mana)
doPlayerSendTextMessage(cid,22,"You transform.")
end
setPlayerStorageValue(cid,5555, 1)
addEvent(callback, delay, ...) -----<<<12h=60000*60*12(?)
else
doPlayerSendTextMessage(cid,22,"You need to wait 12 hours to use.")
end
else
doPlayerSendTextMessage(cid,22,"You don't have level.")
end
end
setPlayerStorageValue(cid,5555, -1)
end

If don't work, you can try based on this script.. i think ;P
 
Back
Top