Jump to content
  • 0

R> Floating Rates Based on Player Count


Question

Posted

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.
 
---------------------------------------

5 answers to this question

Recommended Posts

  • 0
Posted (edited)

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
  • 0
Posted

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!

  • 0
Posted (edited)

note :  no test

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

 

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!

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...