Jump to content
  • 0

Allskills NPC with payment or without payment


Question

7 answers to this question

Recommended Posts

Posted (edited)

with payment

prontera,150,180,4 script Test 100,{
mes "You have to pay me 100z";
select("Yes");
if(Zeny<100)
{
 mes "Your Zeny are not enough.";
 close;
}
set Zeny,Zeny-100;
atcommand "@allskill";
mes "Success.";
close;
}

Edited by goddameit
Posted (edited)

boom !!! THANK YOU !!

btw i modify the script like this with spacing..... its good ?


prontera,150,180,4 script Test 100,{
[tab]mes "You have to pay me 100z";
[tab]select("Yes");
[tab]if(Zeny<1000000000)
[tab]{
[tab]mes "Your Zeny are not enough.";
[tab]close;
[tab]}
[tab]set Zeny,Zeny-1000000000;
[tab]atcommand "@allskill";
[tab]mes "Success.";
[tab]close;
}

Edited by mikemike
Posted

Tabs aren't processed by the script engine so you can add/remove them wherever (except within words/numbers, of course). You only need them in the script header.

prontera,150,180,4    script    Test    100,{

Posted (edited)

Yep the tabs are only important to this

prontera,150,180,4<tab>script<tab>Test<tab>100,{

boom !!! THANK YOU !!

btw i modify the script like this with spacing..... its good ?


prontera,150,180,4 script Test 100,{
[tab]mes "You have to pay me 100z";
[tab]select("Yes");
[tab]if(Zeny<1000000000)
[tab]{
[tab]mes "Your Zeny are not enough.";
[tab]close;
[tab]}
[tab]set Zeny,Zeny-1000000000;
[tab]atcommand "@allskill";
[tab]mes "Success.";
[tab]close;
}

Edited by Yudax

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