Jump to content

Question

Posted

It's more like of setting a certain account into a level 1 user (super account) then having that account the privileges of x2 exp and droprates. I would also like to request for a script that will accept a certain amount of items before making an account a premium account. It has to be with proper validation that it will only accept accounts who are still not level 1 users. And oh, the premium service should only last 1 week. Thanks!

8 answers to this question

Recommended Posts

  • 0
Posted
On 8/21/2013 at 1:36 PM, chromus28 said:

guys my premium npc from emistry is working fine but when im paying the 10 pod this is popping out

 

[Warning]: script:op_2num: overflow detected op=C_MUL i1=1377061112 i2=1000
[Debug]: Source (NPC): Premium NPC at prontera (151,185)
[Warning]: script:op_2num: overflow detected op=C_MUL i1=1377061112 i2=1000
[Debug]: Source (NPC): Premium NPC at prontera (151,185)
 
here is my script
 

prontera,151,185,6 script Premium NPC 435,{

mes "Want to be full time Premium Users for 1 week ?";
mes "Then give me "+10+" x "+getitemname(7179);
if( countitem( 7179 ) >= 10 ){
if( select("YES:NO") == 1 ){
delitem 7179,10;
set #PremiumUser,gettimetick(2) + ( .Day * 3600 * 24 );
sc_start SC_ITEMBOOST,( #PremiumUser * 1000 ),200;
sc_start SC_EXPBOOST,( #PremiumUser * 1000 ),200;
mes "Done. enjoy your Premium Services for 1 Week.";
}
}
close;

OnPCLoginEvent:
if( #PremiumUser > gettimetick(2) ){
sc_start SC_ITEMBOOST,( ( #PremiumUser - gettimetick(2) ) * 1000 ),200;
sc_start SC_EXPBOOST,( ( #PremiumUser - gettimetick(2) ) * 1000 ),200;
}
end;
}

 

 

 

problem solve by myself lol thanks for the great script

 

 

is this the final code sir?

Posted

Easier ways, and if it's not using additional @commands then there is already a script out there, go search for it, I believe Emistry replied to it.

Based on Premium user getting raised exp and increased drop rate as well would need minor modification only.

Posted (edited)

Thank you for the info. I'll go look for it.

Tried looking for it and didn't find anything related aside from the previous posts requesting for the same thing.

Edited by evespiridion
Posted

ya i have made this before...maybe it is at eAthena...

http://upaste.me/851341191e32f77

i tried this script and its working fine but there is a debug and warning on my putty 

 

[Warning]: script:op_2num: overflow detected op=C_MUL i1=1377056730 i2=1000
[Debug]: Source (NPC): Premium NPC at prontera (151,185)
[Warning]: script:op_2num: overflow detected op=C_MUL i1=1377056730 i2=1000
[Debug]: Source (NPC): Premium NPC at prontera (151,185)
 
what is the problem in this case?
Posted (edited)

guys my premium npc from emistry is working fine but when im paying the 10 pod this is popping out

 

[Warning]: script:op_2num: overflow detected op=C_MUL i1=1377061112 i2=1000
[Debug]: Source (NPC): Premium NPC at prontera (151,185)
[Warning]: script:op_2num: overflow detected op=C_MUL i1=1377061112 i2=1000
[Debug]: Source (NPC): Premium NPC at prontera (151,185)
 
here is my script
 
prontera,151,185,6 script Premium NPC 435,{

mes "Want to be full time Premium Users for 1 week ?";
mes "Then give me "+10+" x "+getitemname(7179);
if( countitem( 7179 ) >= 10 ){
if( select("YES:NO") == 1 ){
delitem 7179,10;
set #PremiumUser,gettimetick(2) + ( .Day * 3600 * 24 );
sc_start SC_ITEMBOOST,( #PremiumUser * 1000 ),200;
sc_start SC_EXPBOOST,( #PremiumUser * 1000 ),200;
mes "Done. enjoy your Premium Services for 1 Week.";
}
}
close;

OnPCLoginEvent:
if( #PremiumUser > gettimetick(2) ){
sc_start SC_ITEMBOOST,( ( #PremiumUser - gettimetick(2) ) * 1000 ),200;
sc_start SC_EXPBOOST,( ( #PremiumUser - gettimetick(2) ) * 1000 ),200;
}
end;
}

 



problem solve by myself lol thanks for the great script

Edited by Capuche
Change to BBCode

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