Luciano
Member
- Joined
- Feb 18, 2010
- Messages
- 998
- Reaction score
- 24
Mana Ring i have add 25% more mana)
but health ring dont work ;/ why?
i put on equip and deequip, look items.xml
[.lua][./lua]<item id="2123" article="a" name="Health Ring">
<attribute key="weight" value="40"/>
<attribute key="description" value="This ring add you 25% more life!!"/>
<attribute key="maxHealthPointsPercent" value="125"/>
<attribute key="slotType" value="ring"/>
[./lua]
------
I need some other scripts too
i have mana boster (add 150k mana only 1 time use and need 30k lv)
dont work... dont ADD the mana... (like ... player lv 30k, have x mana, after use he should have x+ 150k mana but he dont get the 150k mana lol)
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) < 30000 then
doCreatureSay(cid, "Only players with level 30k can use it.", TALKTYPE_ORANGE_1)
return true
end
if getPlayerStorageValue(cid,99112) == 2 then
doPlayerSendCancel(cid, "You can use this item once.")
return true
end
setCreatureMaxMana(cid,(getCreatureMaxMana(cid))+150000)
setPlayerStorageValue(cid,99112,2)
doCreatureSay(cid, "You have gained 150k mana!!", TALKTYPE_ORANGE_1)
return true
end
<action itemid="7440" event="script" value="manabooster.lua"/>
and health...
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) < 30000 then
doCreatureSay(cid, "Only players with level 30k can use it.", TALKTYPE_ORANGE_1)
return true
end
if getPlayerStorageValue(cid,99114) == 2 then
doPlayerSendCancel(cid, "You can use this item once.")
return true
end
setCreatureMaxHealth(cid,(getCreatureMaxHealth(cid))+150000)
setPlayerStorageValue(cid,99114,2)
doCreatureSay(cid, "You have gained 150k health!!", TALKTYPE_ORANGE_1)
return true
end
----------------------
ok,
now the requests:
a broadcast thing.
Exemple:
Some scroll, the player use he get 8 broadcasts.
What?
He say !broadcast Text here.
He can only !broadcast if he have "charges" of broadcast.
If no have any, then just dont do !broadcast (lol?)
Btw: When use !broadcast, say whow many broadcasts left, example
the player got 8 bc now.
he use !broadcast Hi im a player \o/
Now you have 7 broadcasts lefts.
------
item "transform"
use on X item transform to Y
(like rich armor to upgraded rich armor (diferent ID's)
------
forever aol > what is it > id 2196 > works like a normal aol, infinite.... but IF THE PLAYER HAVE RED SKULL AND DIE, he dont lost anything.... also dont lost the aol too
- aol its infinite now, but rs still lose itens ;/
------
exp potion > increase the exp rate by 2x of player - one time per day and it have duration = 1 hour
Lotery Bird > golden falcon. 9003 > Its like a lotery, when u use it u can win ONE item.
example (noob items)
using u can win:
k armor
g armor
mpa
k legs
g legs
... but like : u have 50 chance drop k armor, 40 g armor, 10 mpa....
I think its all for now
Thanks, and yeah,
im kind noob, im entering world of script, but it is fuc**** hard lol
but health ring dont work ;/ why?
i put on equip and deequip, look items.xml
[.lua][./lua]<item id="2123" article="a" name="Health Ring">
<attribute key="weight" value="40"/>
<attribute key="description" value="This ring add you 25% more life!!"/>
<attribute key="maxHealthPointsPercent" value="125"/>
<attribute key="slotType" value="ring"/>
[./lua]
------
I need some other scripts too
i have mana boster (add 150k mana only 1 time use and need 30k lv)
dont work... dont ADD the mana... (like ... player lv 30k, have x mana, after use he should have x+ 150k mana but he dont get the 150k mana lol)
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) < 30000 then
doCreatureSay(cid, "Only players with level 30k can use it.", TALKTYPE_ORANGE_1)
return true
end
if getPlayerStorageValue(cid,99112) == 2 then
doPlayerSendCancel(cid, "You can use this item once.")
return true
end
setCreatureMaxMana(cid,(getCreatureMaxMana(cid))+150000)
setPlayerStorageValue(cid,99112,2)
doCreatureSay(cid, "You have gained 150k mana!!", TALKTYPE_ORANGE_1)
return true
end
<action itemid="7440" event="script" value="manabooster.lua"/>
and health...
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) < 30000 then
doCreatureSay(cid, "Only players with level 30k can use it.", TALKTYPE_ORANGE_1)
return true
end
if getPlayerStorageValue(cid,99114) == 2 then
doPlayerSendCancel(cid, "You can use this item once.")
return true
end
setCreatureMaxHealth(cid,(getCreatureMaxHealth(cid))+150000)
setPlayerStorageValue(cid,99114,2)
doCreatureSay(cid, "You have gained 150k health!!", TALKTYPE_ORANGE_1)
return true
end
----------------------
ok,
now the requests:
a broadcast thing.
Exemple:
Some scroll, the player use he get 8 broadcasts.
What?
He say !broadcast Text here.
He can only !broadcast if he have "charges" of broadcast.
If no have any, then just dont do !broadcast (lol?)
Btw: When use !broadcast, say whow many broadcasts left, example
the player got 8 bc now.
he use !broadcast Hi im a player \o/
Now you have 7 broadcasts lefts.
------
item "transform"
use on X item transform to Y
(like rich armor to upgraded rich armor (diferent ID's)
------
forever aol > what is it > id 2196 > works like a normal aol, infinite.... but IF THE PLAYER HAVE RED SKULL AND DIE, he dont lost anything.... also dont lost the aol too
------
exp potion > increase the exp rate by 2x of player - one time per day and it have duration = 1 hour
Lotery Bird > golden falcon. 9003 > Its like a lotery, when u use it u can win ONE item.
example (noob items)
using u can win:
k armor
g armor
mpa
k legs
g legs
... but like : u have 50 chance drop k armor, 40 g armor, 10 mpa....
I think its all for now
Thanks, and yeah,
im kind noob, im entering world of script, but it is fuc**** hard lol
Last edited: