SorketROrk
Well-Known Member
Hi!
I was hoping to get some help with this system - CreatureEvent - [TFS 1.3] Upgrade System (https://otland.net/threads/tfs-1-3-upgrade-system.264672/)
I would like for a player to open a quest chest and get an item with attributes like the ones you get from the upgrade system.
Something like this:
Player opens chest > gets an item, lets say Demon Legs, add item level "200" & set rarity to "Epic or Legendary"
using the functions from the developer notes:
Here is the quest script I have, might not be the best but it works:
So maybe the player could get a reward of demon legs with item lvl 200 and random rarity or a set rarity, with stats, I appreciate all help, as I would like to learn more about this system myself, hopefully someone can help me out here!
Yours,
SRO
I was hoping to get some help with this system - CreatureEvent - [TFS 1.3] Upgrade System (https://otland.net/threads/tfs-1-3-upgrade-system.264672/)
I would like for a player to open a quest chest and get an item with attributes like the ones you get from the upgrade system.
Something like this:
Player opens chest > gets an item, lets say Demon Legs, add item level "200" & set rarity to "Epic or Legendary"
using the functions from the developer notes:
Lua:
item:setItemLevel(item_level, true)
item:rollRarity()
item:setRarity(rarity)
Here is the quest script I have, might not be the best but it works:
Lua:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 1740 then
queststatus = getPlayerStorageValue(cid, 9070)
if queststatus == -1 then
setPlayerStorageValue(cid, 9070, 1)
doPlayerAddItem(cid, 2495, 1)
doPlayerSendTextMessage(cid,22,"You have found Demon Legs.")
else
doPlayerSendTextMessage(cid, 22, "it is empty.")
end
end
return 1
end
So maybe the player could get a reward of demon legs with item lvl 200 and random rarity or a set rarity, with stats, I appreciate all help, as I would like to learn more about this system myself, hopefully someone can help me out here!
Yours,
SRO