• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Prestige Weapon Help

Dkadsfe

Member
Joined
Apr 1, 2016
Messages
280
Reaction score
22
How do i make this turn into prestige use only?
<movevent type="Equip" itemid="7735" slot="shield" reborn="2" event="function" value="onEquipItem">
<movevent type="Equip" itemid="7735" slot="shield" prestige="2" event="function" value="onEquipItem">
<movevent type="Equip" itemid="7735" slot="shield" rebirth="2" event="function" value="onEquipItem">
i tried all 3 but it did not work please help me
 
How do i make this turn into prestige use only?
<movevent type="Equip" itemid="7735" slot="shield" reborn="2" event="function" value="onEquipItem">
<movevent type="Equip" itemid="7735" slot="shield" prestige="2" event="function" value="onEquipItem">
<movevent type="Equip" itemid="7735" slot="shield" rebirth="2" event="function" value="onEquipItem">
i tried all 3 but it did not work please help me
Code:
    <movevent event="DeEquip" itemid="number" slot="equipment slot" function="onDeEquipItem" />
    <movevent event="Equip" itemid="number" slot="equipment slot" level="number" function="onEquipItem">
        <vocation name="vocation name 1" />
        <vocation name="vocation name 2" showInDescription="0 or 1 for true or false" />
    </movevent>
 
Code:
    <movevent event="DeEquip" itemid="number" slot="equipment slot" function="onDeEquipItem" />
    <movevent event="Equip" itemid="number" slot="equipment slot" level="number" function="onEquipItem">
        <vocation name="vocation name 1" />
        <vocation name="vocation name 2" showInDescription="0 or 1 for true or false" />
    </movevent>
i mean prestige in like go to lvl 717k then back to lvl 8 and by using cid 4500 or something how do i do that?
like how do i do if cid is 4500 then 2 or more can use but 1 or less cannot use?
 
i mean prestige in like go to lvl 717k then back to lvl 8 and by using cid 4500 or something how do i do that?
like how do i do if cid is 4500 then 2 or more can use but 1 or less cannot use?
You either assign a script to the item which does what you want it to do, but swap out the
Code:
function="onDeEquipItem"
function="onEquipItem"
with
Code:
script="thenameofyourscript.lua"
For both equip and deequip, or you modify the source to read and do something with those additional values from the nodes.
 
function onEquip()
if getPlayerReborn() < 2 then
return false
end
end

it would look like that, that obviously wont work but thats the idea....
 
Change Testwep.lua to your script name

Code:
<movement type="Equip" itemid="7735" event="script" value="Testwep.lua"/>
 <movement type="DeEquip" itemid="7735" event="function" value="onDeEquipItem"/>

Change 85987 to what your storage value is.

Code:
function onEquip(cid, item, slot)
    if getPlayerStorageValue(cid, 85987) >= 2 then
        return true
    else
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You must be Rebirth 2 or higher to equip this.")
        return false
    end
end
 
Back
Top