Jump to content
GmOcean

script_command adjustments

Recommended Posts

Well some may not consider this an overhaul, but really I think a few commands are in need of a small adjustment

Namely the following:

*getinventorylist;*getpartymember <party id>{,<type>};*getguildmember <guild id>{,<type>};*getmobdrops(<mob id>)

These 4 commands all having something in common.

1. They produce array's using $@variables. ( *getinventorylist being the exception using @variables ).

2. They all produce a variable that deals with their array size.

3. They don't erase that array.

 

What I'm suggesting is simple.

1. Produce .@(temp_scope) variables.

2. eliminate this variable entirely, or leave it for backwards compatibility.

3. Erase the array upon execution of command. This will allow the use of getarraysize(); for each of these commands, which imo should have been the norm.

 

These are just my thoughts on the matter. Anyone else feel the same way?

Share this post


Link to post
Share on other sites

Support for scope variable is good, but it surely will broke all scripts using those commands.

Though haruna would be able to comment if it's viable or not.

Share this post


Link to post
Share on other sites

Yeah, I thought about the breaking of all other scripts using the commands, but I figured it'd fit right in along with other deprecated commands in that sense.

Share this post


Link to post
Share on other sites

Yeah, I thought about the breaking of all other scripts using the commands, but I figured it'd fit right in along with other deprecated commands in that sense.

Not exactly, since command is not depreciated, the server owner will eventually open thread here saying getpartynember not working(we can't check if they using old variable name), so maybe either

Add a optional arguments which accepts variable name, and data will be stored there.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.