Jump to content
  • 0

R> Floating Rates Based on Player Count


Meister

Question


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

Hi,

 

Requesting for a script that will use the mechanics of floating rates via player count excluding vending.

 

I can somehow get the script by getusers(1) but can't check the isvending :(

 

---------------------------------------
 
*getusers(<type>)
 
This function will return a number of users on a map or the whole server. What 
it returns is specified by Type.
 
Type can be one of the following values, which control what will be returned:
 
    0 - Count of all characters on the map of the invoking character.
    1 - Count of all characters in the entire server.
    8 - Count of all characters on the map of the NPC the script is
        running in.
 
---------------------------------------
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

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

I did not, mime does not check for vending

I use a vending map to check venders on my own server btw

Edited by Stolao
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

I did not, mime does not check for vending

I use a vending map to check venders on my own server btw

 

Can you add ischeckvending for your script? rather can you modify it? Thanks!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  99
  • Reputation:   10
  • Joined:  01/13/12
  • Last Seen:  

note :  no test

    addrid(0);
    .@countVend = 0;
    if(checkvending() == 1 || checkvending() == 2 || checkvending() == 4 ){
        .@countVend+= 1;
    }
    set .@i, getusers(1) - .@countVend;
Edited by a91323
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

 

note :  no test

    addrid(0);
    .@countVend = 0;
    if(checkvending() == 1 || checkvending() == 2 || checkvending() == 4 ){
        .@countVend+= 1;
    }
    set .@i, getusers(1) - .@countVend;

 

I'll this. Thanks! I'll feedback later. Happy New Year!

Link to comment
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
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  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.

×
×
  • Create New...