im working once more on AI entities but advanced one this time, and i'm still stuck from where i've left off
problem is that i need a portable wh for my entities
there is a variable in the client which is being set on the last npc id to be used in packet 1102 (in case of sash it's being set with the sash item uid)
here how it goes (feel free to correct me)
user click wh npc
client saves that npc id (not interested from which packet)
client sends the npc dialog
source reply with data packet opendialog/4
client sends 1009 subtype money saved and 1102 (with the npc id)
so the source know which wh to show it's items from that 1102 packet
and about the sashes, i've just implemented them, client already draw their GUI (that 3/6/9 slot window) before it sends the wh 1102 packet which makes them useless to my entities as i won't be able to open sashes using a chat packet or even npc dialog
so all i want is something smart without having to RE the client (such thing could take me a week and i don't have this time)
even if you can't program and still got an idea please feel free to post it (not going to make fun of you)
problem is that i need a portable wh for my entities
there is a variable in the client which is being set on the last npc id to be used in packet 1102 (in case of sash it's being set with the sash item uid)
here how it goes (feel free to correct me)
user click wh npc
client saves that npc id (not interested from which packet)
client sends the npc dialog
source reply with data packet opendialog/4
client sends 1009 subtype money saved and 1102 (with the npc id)
so the source know which wh to show it's items from that 1102 packet
and about the sashes, i've just implemented them, client already draw their GUI (that 3/6/9 slot window) before it sends the wh 1102 packet which makes them useless to my entities as i won't be able to open sashes using a chat packet or even npc dialog
so all i want is something smart without having to RE the client (such thing could take me a week and i don't have this time)
even if you can't program and still got an idea please feel free to post it (not going to make fun of you)