Jump to content

Replace hard coded statuses with scripted ones


xazax

Recommended Posts


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  427
  • Reputation:   123
  • Joined:  11/17/11
  • Last Seen:  

Hi!

First of all sorry for being inactive, I've been very busy lately, and still am, however noticed something.

There are some statuses such as the newly added SC_INCMHP.

Well, honestly, I don't really like that we add new statuses on each bonus, simply we do not need so many statuses, futhermore we want to be more flexible, to give users the possibility to create their own statuses.

There is a nice script command called autobonus. It can attach a bonus script to the user as a status, on attack, hit etc. We should create a similar command, which just simply starts a status, something like autobonus does. This way we can simply remove some statuses, and replace them with scriptet ones, which are more customizable.

Maybe we can even add support for adding status icons to those statuses.

Opinions?

  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  764
  • Reputation:   220
  • Joined:  11/14/11
  • Last Seen:  

I like the idea. Everything that make changes easiers for user is welcome.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  554
  • Reputation:   70
  • Joined:  04/04/12
  • Last Seen:  

I agree..however how can we make it possible??

IMO is to do something like this

bonusname,n,m,y,x;

where n is the variable to change like maxHP,SP,aspd, etc

m is a value where is a fixed value

y is a value that is a percentage value

then x is for the duration...

what do you think???

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  427
  • Reputation:   123
  • Joined:  11/17/11
  • Last Seen:  

My idea would be something like customstatus "statusname","itemscript", duration, icon;

example:

customstatus "OP buff", "bonus bMaxHPrate,20; bonus bMaxSPrate,15; bonus bAspdRate,2;", 180000, SI_BERSERK;

This would display a status named OP buff, with the icon of berserk, that last 180 sec and gives 20% max hp 15% max sp and 2% aspd bonus.

  • Upvote 5
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

=O I agree

Link to comment
Share on other sites

  • 5 months later...

  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

want to bump for this.. :)

  • Upvote 1
Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  355
  • Reputation:   34
  • Joined:  02/09/12
  • Last Seen:  

Bump well, that is really great xD

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

I love this idea, but would this cause more strain on a server then the current way?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  427
  • Reputation:   123
  • Joined:  11/17/11
  • Last Seen:  

In my opinion using scripted statuses would not reduce performance significantly (of course they would not perform as good as hard coded ones, but I doubt that overhead would be noticeable even for popular servers). However maintaining scripted statuses would be easier.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  297
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

the question here is that, would it be possible to a script to interact with the client? specially with the icon part. i've created hardcoded statuses myself and i think it might be hard to make it variable-like as for a script well, i dunno. just my thoughts.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  427
  • Reputation:   123
  • Joined:  11/17/11
  • Last Seen:  

Status icon would not be a problem, I'm almost 100% sure about that. As long as the selected status icon is available on the client side of course.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  297
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

i see. but still, status icon definitions would be hardcoded. but yeah, if that's the case then this one is good.

Link to comment
Share on other sites

  • 11 months later...

  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

This was already implemented in the form of the 'bonus_script' command.

Link to comment
Share on other sites

×
×
  • Create New...