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

Change item look

Hindori

New Member
Joined
Jan 24, 2009
Messages
157
Reaction score
2
Hello. I need script which will be changing my items look if they have actionid = xyz.

For example if item have actionid = 1001 then change look for 3567
if item have actionid = 1002 then change look for 3568
etc etc.

And It work only for item with id 2028, 2031, 2025.

Could anyone help?
 
Aid is set by dosetitematribute when i you some item in monster corpse. All monster have other aid. There are about 350 aids. You need other explain or you know how i want to do it?
 
You can change the clientId in this function:
void NetworkMessage::putItem(const Item* item)
--> Here: put<uint16_t>(it.clientId);

For example:
[cpp] uint16_t aid;
aid = item->getActionId();
if(aid == 1337)
put<uint16_t>((it.clientId+1));
else
put<uint16_t>(it.clientId);[/cpp]

But you cannot move the item then (if it has another looktype because of AID), I did not find out how to fix that.
 
Back
Top