[Request] Pack Meteors By Right Clicking

03/30/2021 21:10 Soulfly25#1
Hello Guys,

Are there any settings to touch to get the meteors auto pack when you right-click on its inventory and then it will be changed to meteorscroll?
03/31/2021 05:50 Asphy×ia#2
just write an item script for the meteor id
03/31/2021 06:44 pintinho12#3
Quote:
Originally Posted by Asphy×ia View Post
just write an item script for the meteor id
Does Meteors trigger the MsgItem usage msg?
03/31/2021 08:47 Soulfly25#4
Yes. The itemusage trigger the message thats why the script wont work.
03/31/2021 08:58 bashondegek#5
Quote:
Originally Posted by Soulfly25 View Post
Yes. The itemusage trigger the message thats why the script wont work.
I believe that message was clientside, iirc.
Also been looking into it lately, but didn't put the time and effort in it to complete it.. so will be following this thread :-)!
03/31/2021 09:40 marcbacor6666#6
you can do it without even right clicking on it.
03/31/2021 09:55 Soulfly25#7
Yeah, I was also thinking about that it might be in clientside too bad not good at it. I also check the itemtype if there is also a function that can be right click but it does not have or I don't see it. I also want it to add timer in inventory to pack meteors but I think that idea is not good. So manually right click the meteor will be a good solution.


Hopefully someone can have the solution as I saw Primal did it in right clicking meteors.

Quote:
Originally Posted by marcbacor6666 View Post
you can do it without even right clicking on it.
Nah. That is easy. I already have that.
03/31/2021 12:30 bashondegek#8
Quote:
Originally Posted by Soulfly25 View Post
Yeah, I was also thinking about that it might be in clientside too bad not good at it. I also check the itemtype if there is also a function that can be right click but it does not have or I don't see it. I also want it to add timer in inventory to pack meteors but I think that idea is not good. So manually right click the meteor will be a good solution.


Hopefully someone can have the solution as I saw Primal did it in right clicking meteors.



Nah. That is easy. I already have that.
Indeed, if i got the time today after work, i’ll take a look at the client side!

But if anyone else knows the solution feel free to share it😄
03/31/2021 14:44 darkhc#9
Quote:
Originally Posted by Soulfly25 View Post
Hello Guys,

Are there any settings to touch to get the meteors auto pack when you right-click on its inventory and then it will be changed to meteorscroll?
I remember having tried this at some point and due to client issues, I could not, the client sends the message and does not allow to do more.
03/31/2021 15:32 marcbacor6666#10
add a checker to it.. i cant really comeup with the write words..

just an example..

check if your inventory have an example 30 meteors..
if it does, create a code that if you click 1 of the meteor and you have a total of 30+ meteor in ur inventory. the 30 meteor will be pack.. and a new item in itemtype.dat for the 30 meteorpack and also to ur source. add an icon on it also in client.
03/31/2021 19:45 Santa#11
Quote:
Originally Posted by Soulfly25 View Post
Yes. The itemusage trigger the message thats why the script wont work.
I’m confused. When you right click the meteor you do see a message server side indicating that?
03/31/2021 19:53 marcbacor6666#12
the script wont work because its not correct. and it does not have to do with client trigger messages
03/31/2021 22:45 Relic#13
Looks like the client checks for ID ranges that cover DragonBall (1088000), Meteor(1088001) and MeteorTear(1088002) when right clicking and displays a "Failed to use this item." system message. You'll need to patch the client to remove this check (unless there's an easier way)

[Only registered and activated users can see links. Click Here To Register...]

This roughly translates to:

HTML Code:
var metId = 1088001;

if (metId >= 1087999 && (metId < 1088003 || metId == 1100003 || metId == 1100006 || metId == 1100009) {
 // Show "STR_CANNOT_USE_ITEM"
}
So if you change the metId < 108003 to metId < 1000 it'll allow the server to process mets/dbs/met tears.
04/01/2021 00:23 Asphy×ia#14
Ahh, that's right. I forgot servers used commands instead of an itemscript to scroll meteors.
04/01/2021 11:37 turk55#15
Quote:
Originally Posted by Relic View Post
Looks like the client checks for ID ranges that cover DragonBall (1088000), Meteor(1088001) and MeteorTear(1088002) when right clicking and displays a "Failed to use this item." system message. You'll need to patch the client to remove this check (unless there's an easier way)

[Only registered and activated users can see links. Click Here To Register...]

This roughly translates to:

HTML Code:
var metId = 1088001;

if (metId >= 1087999 && (metId < 1088003 || metId == 1100003 || metId == 1100006 || metId == 1100009) {
 // Show "STR_CANNOT_USE_ITEM"
}
So if you change the metId < 108003 to metId < 1000 it'll allow the server to process mets/dbs/met tears.
Or just skip the whole check and you can use it with dbs and mettears too :)