Jump to content

Recommended Posts

Posted

I'm Looking for this. but it's seems not working on latest revisions. would you please update it ?

Any solution for this? 

[Error]:

script error on npc/vips.txt line 63
    expect ';' or '{' at function syntax
    58 : mes "[^FF0000Clahador^000000]";
    59 : mes "Thank you!";
    60 : mes "Come Again!";
    61 : close;
    62 :
*   63 : function       script' 'getPremium     {
    64 :        set .@ticks, getarg(0);
    65 :        if (.@ticks <= 0) {
    66 :                debugmes "getPremium - tried to set a timer in the past"
;
    67 :                end;
    68 :        }

<TAB>

Posted

im having same problem here. [Error]:

script error on npc/vips.txt line 63
    expect ';' or '{' at function syntax
    58 : mes "[^FF0000Clahador^000000]";
    59 : mes "Thank you!";
    60 : mes "Come Again!";
    61 : close;
    62 :
*   63 : function       script' 'getPremium     {
    64 :        set .@ticks, getarg(0);
    65 :        if (.@ticks <= 0) {
    66 :                debugmes "getPremium - tried to set a timer in the past"
;
    67 :                end;
    68 :        }
 
Already using <TAB> also not working.. Hmmm...
  • Upvote 1
Posted (edited)

Im already using TAB in that error.. Still same.. Already download the attach script also same problem.. at line 63..

 

OK.. Here the step i follow : 

 

1. I create custom item with scripts : 

 

 callfunc "getPremium", 30 * 24 * 36

 

then update the item_db2

 

2. Then i download the NPC scripts.. Then put in custom..

 Also have put the custom entry at /scripts_custom.txt

 

3. Reload item_db2, reload scripts_custom

 

=====

 

But i will got error at line 63.. Try many times also same problem.. When i do like the console ask also same error or it will become worse.. Hmmm.. Which part did i miss?

 

PS : The NPC are shows up..

Edited by rakuzas
Posted (edited)

I have the script like this :

 



 

 

 

// ------------------------------------------------------------------------------------------
// ------ Script Release
// Title: Premium/ViP Services System
// Author: Diconfrost VaNz - www.wipeoutgaming.info - [email protected]
// Version: 2.0
// Special thanks to the following for helping me making this script
// Jezu
// Dastgr
// clydelion
// 
// Note: This is a character-based script. If you want to make this into Account-Based, just put "#" beside "premium".
// ------------------------------------------------------------------------------------------
prontera,155,181,5    script    Clahador    757,{
 
mes "[^FF0000Clahador^000000]";
mes "Hello "+strcharinfo(0)+", I'm ^FF0000Clahador the butcher^000000.";
mes "I will be of help if you need something.";
next;
mes "[^FF0000Clahador^000000]";
mes "Oh! you need help?";
mes "What kind of help do you need?";
next;
menu "Newbie here",P_New,"I'm a ViP!",P_VIP,"Nevermind",P_NVM;
 
P_New:
 
mes "[^FF0000Clahador^000000]";
mes "Did you already claim your free items in the ^FF0000Freebies NPC^000000???";
menu "Yes!",F_Yes,"No!",F_No;
 
F_No:
mes "[^FF0000Clahador^000000]";
mes "You should get 'em!.";
mes "It will help you on the start.";
close;
 
F_Yes:
mes "[^FF0000Clahador^000000]";
mes "Haha, i hope you like those items.";
next;
mes "By the way, you can earn zennies through quests like going to daily quest, request board, and many more!";
mes "Did you know that you can have many zennies you want if you gonna hunt more rare items?";
mes "Try it!";
close;
 
P_VIP:
mes "[^FF0000Clahador^000000]";
mes "Oh you avail our ViP Ticket!";
mes "Thank you!";
next;
mes "[^FF0000Clahador^000000]";
mes "Your Premium Service will expire after " + callfunc("Time2Str",prmm);
mes "You should maximize it";
mes "Grind your skills and hunt now!";
close;
 
P_NVM:
mes "[^FF0000Clahador^000000]";
mes "Thank you!";
mes "Come Again!";
close;
}
 
    function    script    getPremium    {
    set .@ticks, getarg(0);
    if (.@ticks <= 0) {
        debugmes "getPremium - tried to set a timer in the past";
        end;
    }
}
    set prmm,    (prmm > gettimetick(2)) ? (prmm : gettimetick(2)) + .@ticks;    {
    doevent    "login::OnPCLoginEvent";
    return; 
}
 
-    script    login    -1,{
OnPCLoginEvent:
    if (prmm > gettimetick(2)) {
    dispbottom "Your Premium Service will expire after " + callfunc("Time2Str",premium);
    sc_start SC_EXPBOOST,(( prmm - gettimetick(2) ) * 1000 ),200;
    sc_start SC_JEXPBOOST,(( prmm - gettimetick(2) ) * 1000 ),200;
    sc_start SC_ITEMBOOST,(( prmm - gettimetick(2) ) * 1000 ),100;
    atcommand "@adjgroup 1 "+strcharinfo(0);
    deltimer strnpcinfo(3)+"::OnPCLoginEvent";
    if ((prmm - gettimetick(2)) < 2147483) {
        addtimer (prmm - gettimetick(2)) *1000, strnpcinfo(3)+"::OnPCLoginEvent";
    } else    {
        addtimer 2147483000, strnpcinfo(3)+"::OnPCLoginEvent";
    }
} else if (#premium) {
    atcommand "@adjgroup 0 "+strcharinfo(0);
    sc_end SC_EXPBOOST;
    sc_end SC_JEXPBOOST;
    sc_end SC_ITEMBOOST;
    set prmm, 0;
    dispbottom "Premium Services has ended.";
}
end;
}
 
 OnAtcommand: {
dispbottom "Your Premium Service will expire after " + callfunc("Time2Str",prmm);
end;
 
OnInit:    bindatcmd "premium",strnpcinfo(3)+"::OnAtcommand"; 
}
end; 
}

 

 

but i still having the same problem, can you help me with this?

 

thump_8511363error-de-sintaxis.png

Edited by nazgul001
Posted

this script is not working 100% bcoz i tried it a few times

 

and also i have a question in this script:

 

why this script

 

Your Premium Service will expire after " + callfunc("Time2Str",prmm)

 

different in this script

 

Your Premium Service will expire after " + callfunc("Time2Str",premium)

 

and also the callfunc("Time2Str",premium)

 

is different here

 

function    script    getPremium

  • 2 weeks later...
  • 4 weeks later...
Posted (edited)

updates? still error same error as what they get

 

 

 

 

 

opss working now . 

 

how to make it inc exp/job/drop by 5% ?

Edited by ivantuting
  • 1 month later...
  • 4 weeks later...
Posted

i got an error ._.

 

attachicon.gifUntitled.png

Did you modify some part of the script?

 

Based on your error you are multiplying 2587883 and 1000 which results to overflow because the maximum script number is 2147483647. But when you are multiplying 2587883 and 1000. It's result is greater than 2147483647 ( result : 2587883000 ) which cause the overflow.

Posted (edited)

i got an error ._.

 

attachicon.gifUntitled.png

Did you modify some part of the script?

 

Based on your error you are multiplying 2587883 and 1000 which results to overflow because the maximum script number is 2147483647. But when you are multiplying 2587883 and 1000. It's result is greater than 2147483647 ( result : 2587883000 ) which cause the overflow.

 

no i don't,

i just modifying to put '#' beside 'prmm'.

 

and btw, if that error show up in my mapserver, did that can make my mapserver crash? like some monsters are stuck/frozen?

Edited by Psyche
  • 5 weeks later...
Posted

 

 

i got an error ._.

 

attachicon.gifUntitled.png

Did you modify some part of the script?

 

Based on your error you are multiplying 2587883 and 1000 which results to overflow because the maximum script number is 2147483647. But when you are multiplying 2587883 and 1000. It's result is greater than 2147483647 ( result : 2587883000 ) which cause the overflow.

 

no i don't,

i just modifying to put '#' beside 'prmm'.

 

and btw, if that error show up in my mapserver, did that can make my mapserver crash? like some monsters are stuck/frozen?

 

it won't affect any of your monsters :D

 

 

 

Announcement: I'll be going back here in rAthena again xD

  • 3 months later...
  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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