• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Making items need vip level

Status
Not open for further replies.

Rochet2

Moderator / Eluna Dev
try the oncanequip hook and return 83 (not sure if this was it) if the player cant equip the item.
What you should be returning is the error code ID, but 83 (or something) is the one that doesnt show one yet still disallows equipping.
 

ALILP

Emulation Addict
try the oncanequip hook and return 83 (not sure if this was it) if the player cant equip the item.
What you should be returning is the error code ID, but 83 (or something) is the one that doesnt show one yet still disallows equipping.
i cant find "oncanequip"
 

Ayase

Enthusiast
u use server event SERVER_EVENT_ON_PACKET_RECEIVE.

copy by "src\LuaEngine\Hooks.h"
SERVER_EVENT_ON_PACKET_RECEIVE = 5, //event, packet, player) - Player only if accessible. Can return false, newPacket


but you need find equip opcode.
 
Status
Not open for further replies.
Top