Jump to content
  • 0

Warp cost differentiation in toasty warper


Namaste

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   1
  • Joined:  04/28/13
  • Last Seen:  

How to setup prices depending on base lvl or job in toasty warper? Can

someone make code for me with differentiation?

For example:

free for < 30lvl

1000zeny for 30<lvl<60

2k for 60<lvl<80

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  143
  • Reputation:   30
  • Joined:  12/23/11
  • Last Seen:  

1) usercount
replace

set .@output$, .@output$ + ((.@enable)?(.@nodeName$ +((.showNodeUserCount)?(" [^0000FF" + .@userCount + "^000000]"):"")):"");

with

set .@output$, .@output$ + ((.@enable)?(.@nodeName$ +((.showNodeUserCount && (getgmlevel()==99))?(" [^0000FF" + .@userCount + "^000000]"):"")):"");

2)zeny
replace

set Zeny, Zeny - .@cost;

with

set @price, 1000*(BaseLevel<30?0:BaseLevel<60?1:BaseLevel<80?2:3);
if (Zeny<@price){
    mes "Not enough Zeny";
    close;
}
set Zeny, Zeny - @price;

 

P.S.: Namaste, если еще будут вопросы по теме - пиши сразу в личку (=

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  143
  • Reputation:   30
  • Joined:  12/23/11
  • Last Seen:  

@price = 1000*(BaseLevel<30?0:BaseLevel<60?1:BaseLevel<80?2:3);
if (Zeny<@price) {
mes "not enough Zeny";
close;
}
Zeny -= @price;
free for < 30lvl

1k zeny for 30<lvl<60

2k for 60<lvl<80

3k for higher

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   1
  • Joined:  04/28/13
  • Last Seen:  

@price = 1000*(BaseLevel<30?0:BaseLevel<60?1:BaseLevel<80?2:3);
if (Zeny<@price) {
mes "not enough Zeny";
close;
}
Zeny -= @price;
free for < 30lvl

1k zeny for 30<lvl<60

2k for 60<lvl<80

3k for higher

Thanks a lot ! How to insert this code in toasty warper, be patient, say please.

(I understand rA scripting syntax very very small, perhabs it need be function or smth. else...i don't know where insert function, and how to use it in toasty syntax)

 

And  How to disable to see count of players on map by players but enables for GMs?

Edited by Namaste
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

And  How to disable to see count of players on map by players but enables for GMs?

 

    if( getgmlevel() >= 5 )
    {
    mes "Users on the Map ( " + getmapusers("prontera") + " )";
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   1
  • Joined:  04/28/13
  • Last Seen:  

And  How to disable to see count of players on map by players but enables for GMs?

 

    if( getgmlevel() >= 5 )
    {
    mes "Users on the Map ( " + getmapusers("prontera") + " )";

I'm talking about modification toastwarper132, how to change it, not new script

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   1
  • Joined:  04/28/13
  • Last Seen:  

Thanks a lot !

Спасибо огроменное !

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