Jump to content
  • 0
Sign in to follow this  
joven15

Premium Services NPC

Question

prontera,164,169,3	script	Premium Trader	757,{mes "Wan to be Premium Users for 1 week ?";mes "Then give me "+7+" x "+getitemname(7179);if( countitem(7179) >= 7 ) {	if( select("YES:NO") == 1 ){		delitem 7179,7;		set #PremiumUser,gettimetick(2) + ( .Day * 3600 * 24 );		sc_start SC_ITEMBOOST,( #PremiumUser * 2000 ),400;		sc_start SC_EXPBOOST,( #PremiumUser * 2000 ),400;		mes "Done. enjoy your Premium Services for 1 Week.";	}}close;OnPCLoginEvent:if( #PremiumUser > gettimetick(2) ){	sc_start SC_ITEMBOOST,( ( #PremiumUser - gettimetick(2) ) * 2000 ),400;	sc_start SC_EXPBOOST,( ( #PremiumUser - gettimetick(2) ) * 2000 ),400;}end;}

Can someone help me. when i try to give the proof of donation. which is the requirements for the premium services. i got this error

 

[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)

 

and my character is not moving like freezing.. hope someone help me.

 

and also can someone revised it for example

 

1. Every 1 hour the npc will announce by himself that the minutes left of your premium services.

2. if you already purchase the premium. the npc will say You a Premium user. 

3. And the name will be change the color. Example my Name is Anela the default color of the name is white. then after i purchased the Premium Service my name will be red. or any color. 

 

is it possible?

 

btw the script is posted and created by Emistry.

 

 

Share this post


Link to post
Share on other sites

38 answers to this question

Recommended Posts

  • 0

you didn't used upaste :( change .Day into 7 to see if it fixes the debug/warning

 

 

3. is not possible

Share this post


Link to post
Share on other sites
  • 0

you didn't used upaste :( change .Day into 7 to see if it fixes the debug/warning

 

 

3. is not possible

http://upaste.me/298f11516c870d521 -- Here's the file. sorry i always forget upaste is the best for pasting code.

 

you didn't used upaste :( change .Day into 7 to see if it fixes the debug/warning

 

 

3. is not possible

btw u said that. the 3 is impossible to do it. any possible that the character is on premium services so the other player will notice it?

 

you didn't used upaste :( change .Day into 7 to see if it fixes the debug/warning

 

 

3. is not possible

still got the error. still got the error and all my character is freezing. :( what happen?

 

you didn't used upaste :( change .Day into 7 to see if it fixes the debug/warning

 

 

3. is not possible

35lzq1c.jpg

 

here's my Printscreen not moving anything when i create another character. same as what happen not moving

Share this post


Link to post
Share on other sites
  • 0

you may want to try this npc that I edited for you, made by brianL http://upaste.me/11c911517cf9cd8b7

 

and for the freezing on the another script you have to change:

 

SC_ITEMBOOST into SC_CASH_RECEIVEITEM

 

SC_EXPBOOST into SC_CASH_PLUSEXP

Share this post


Link to post
Share on other sites
  • 0

you may want to try this npc that I edited for you, made by brianL http://upaste.me/11c911517cf9cd8b7

 

and for the freezing on the another script you have to change:

 

SC_ITEMBOOST into SC_CASH_RECEIVEITEM

 

SC_EXPBOOST into SC_CASH_PLUSEXP

how to use that ? the one you send a link. btw do i need to add the item_db to use it. if yes. can u convert it into new item_db script im using a newer Version of hercules.

{	Id: 501	AegisName: "Red_Potion"	Name: "Red Potion"	Type: 0	Buy: 50	Weight: 70	Upper: 63	Script: <" itemheal rand(45,65),0; ">},

 

you may want to try this npc that I edited for you, made by brianL http://upaste.me/11c911517cf9cd8b7

 

and for the freezing on the another script you have to change:

 

SC_ITEMBOOST into SC_CASH_RECEIVEITEM

 

SC_EXPBOOST into SC_CASH_PLUSEXP

btw its working. here's my other concern. is it possible even the chracter is logout the time of consuming is running even if hes logout.

Share this post


Link to post
Share on other sites
  • 0

 

you may want to try this npc that I edited for you, made by brianL http://upaste.me/11c911517cf9cd8b7

 

and for the freezing on the another script you have to change:

 

SC_ITEMBOOST into SC_CASH_RECEIVEITEM

 

SC_EXPBOOST into SC_CASH_PLUSEXP

how to use that ? the one you send a link. btw do i need to add the item_db to use it. if yes. can u convert it into new item_db script im using a newer Version of hercules.

 

{	Id: 501	AegisName: "Red_Potion"	Name: "Red Potion"	Type: 0	Buy: 50	Weight: 70	Upper: 63	Script: <" itemheal rand(45,65),0; ">},

 

oh sorry :P use:

Script: <" callfunc "F_VIPstart",604800; ">

 

and

Type: 0

into

Type: 2

 

you may want to try this npc that I edited for you, made by brianL http://upaste.me/11c911517cf9cd8b7

 

and for the freezing on the another script you have to change:

 

SC_ITEMBOOST into SC_CASH_RECEIVEITEM

 

SC_EXPBOOST into SC_CASH_PLUSEXP

btw its working. here's my other concern. is it possible even the chracter is logout the time of consuming is running even if  hes logout.

 

with your script not, unless we do some mods to it, but then it would be the same like the one from brianL :P

Share this post


Link to post
Share on other sites
  • 0

 

 

you may want to try this npc that I edited for you, made by brianL http://upaste.me/11c911517cf9cd8b7

 

and for the freezing on the another script you have to change:

 

SC_ITEMBOOST into SC_CASH_RECEIVEITEM

 

SC_EXPBOOST into SC_CASH_PLUSEXP

how to use that ? the one you send a link. btw do i need to add the item_db to use it. if yes. can u convert it into new item_db script im using a newer Version of hercules.

 

{	Id: 501	AegisName: "Red_Potion"	Name: "Red Potion"	Type: 0	Buy: 50	Weight: 70	Upper: 63	Script: <" itemheal rand(45,65),0; ">},

 

oh sorry :P use:

Script: <" callfunc "F_VIPstart",604800; ">

 

and

Type: 0

into

Type: 2

you may want to try this npc that I edited for you, made by brianL http://upaste.me/11c911517cf9cd8b7

 

and for the freezing on the another script you have to change:

 

SC_ITEMBOOST into SC_CASH_RECEIVEITEM

 

SC_EXPBOOST into SC_CASH_PLUSEXP

btw its working. here's my other concern. is it possible even the chracter is logout the time of consuming is running even if  hes logout.

 

with your script not, unless we do some mods to it, but then it would be the same like the one from brianL :P

 

is possible if some mods? is it hard?

Share this post


Link to post
Share on other sites
  • 0

you may want to try this npc that I edited for you, made by brianL http://upaste.me/11c911517cf9cd8b7

 

and for the freezing on the another script you have to change:

 

SC_ITEMBOOST into SC_CASH_RECEIVEITEM

 

SC_EXPBOOST into SC_CASH_PLUSEXP

do i have to create an dummy item? for it? and put it on item_info.lub and lua?

Share this post


Link to post
Share on other sites
  • 0

just use it and the other one and you don't need any item or mod :) http://upaste.me/4610115187e34a13c

no error on the map server but when try to purchase the premium. and when choice the yes on the category . nothing happen and the npc will not close; i think somethings missing on it. then after that i need to relog so my character will be reset. and i merge it into one file.

 

here ---> http://upaste.me/62ae1151958bb5f10

Share this post


Link to post
Share on other sites
  • 0

now it MUST work, last time my ctrl+c didn't worked well lol, try this:

http://upaste.me/a88a11520ab1f855f

ye the npc is working but how the script going? i saw some message appear " you are now a premium member" but theres no time left like this

 

 SC_CASH_RECEIVEITEM

 SC_CASH_PLUSEXP

 

 and after i purchased the premium i can buy again wat do i mean is. the npc cant detect if im still a premium user.

 

and i got error on my sql.

 

23le58j.jpg

 

btw thank you very much for helping me a lot.

Edited by joven15

Share this post


Link to post
Share on other sites
  • 0

solved all issues, but not the SQL errors, are you using latest hercules version?

 

http://upaste.me/r/329811521cad4ad04

i dont know what version but i used the latest thought. i saw server support up to "4096" concurrent connections. it appears the error when i try to purchase the premium services. :(

 

solved all issues, but not the SQL errors, are you using latest hercules version?

 

http://upaste.me/r/329811521cad4ad04

seems the sql error is gone when i try to restart the whole server. btw how can i edit the exp bonus is it x2 on then conf/battle/exp.conf. meaning is it auto or do i have to change it into x2 exp value.?>

Share this post


Link to post
Share on other sites
  • 0

I didn't understand your question xD but I'll explain:

 

ModExp = 100 = normal exp (100%)

ModExp = 150 = 50% plus normal exp (150%)

 

is that what you wanted to know? the same goes with ModDrop

Share this post


Link to post
Share on other sites
  • 0

I didn't understand your question xD but I'll explain:

 

ModExp = 100 = normal exp (100%)

ModExp = 150 = 50% plus normal exp (150%)

 

is that what you wanted to know? the same goes with ModDrop

sorry. for not clarifying my question.

 

here. on my config. im using it  Base_EXP and Job_Exp 1500 on my /config/battle/exp.conf 

 

and some of my drop rate. like boss and item monster 

 

drop item. - 1000 = meaning o 10%

drop card item. 1000 = meaning o 10%

boss drop item 1000 = meaning o 10%

boss card drop. 150 meaning 1%

 

now here's my question. on the script that u made. when i set it on the MODEXP and  MODDROP. is it automatic to add the rate or it will multiply ? now is it possible if this script will be given the all of the drop, exp, rate etc. will be just multiply?

 

like when i set 3 meaning the drop rate will be x3 on the config for example. when i set 3 the exp will be this.

 

drop item. - 3000 = meaning o 30%

drop card item. 3000 = meaning o 30%

boss drop item 3000 = meaning o 30%

boss card drop. 450 meaning 4.5%

 

. sorry for many request.

Share this post


Link to post
Share on other sites
  • 0

yeah, 300 = 3x :)

 

ModDrop = 300

 

and yes it adds to every drop

last question :)... is it running even the user is logout meaning the time they consume even they logout?

Share this post


Link to post
Share on other sites
  • 0

 

yeah, 300 = 3x :)

 

ModDrop = 300

 

and yes it adds to every drop

last question :)... is it running even the user is logout meaning the time they consume even they logout?

 

yes it does

Share this post


Link to post
Share on other sites
  • 0

yeah, 300 = 3x :)

 

ModDrop = 300

 

and yes it adds to every drop

last but not the list. hehehe  sorry for many request.

 

can i request again?

 

can u do add a menu for 1 day only and 7 day 

 

on the menu

 

1 Day Premium

2 Days Premium

7 Days Premium

Share this post


Link to post
Share on other sites
  • 0

yeah, 300 = 3x :)

 

ModDrop = 300

 

and yes it adds to every drop

last but not the list. hehehe sorry for many request.

 

can i request again?

 

can u do add a menu for 1 day only and 7 day

 

on the menu

 

1 Day Premium

2 Days Premium

7 Days Premium

. thanks.

 

yeah, 300 = 3x :)

 

ModDrop = 300

 

and yes it adds to every drop

last but not the list. hehehe sorry for many request.

 

can i request again?

 

can u do add a menu for 1 day only and 7 day

 

on the menu

 

1 Day Premium

2 Days Premium

7 Days Premium

. thanks.

 

.. btw

 

i test the premium services but when i try to attack monster poring. it gives lvl 2 and 63%

 

then i when i try the non premium services and i attack poring monster it gives lvl 2 and 63% same as with premium?

 

 

also when i try the command of @rates with the account premium and with non premium. same as the rate.

Share this post


Link to post
Share on other sites
  • 0

Joven,

 

can you please not double, triple, and quadruple post...Please follow our Hercules Forum Rules. If you have more information, please edit your last reply instead of making multiple ones... which then leads you to tripling and even quadrupling your postings.

Share this post


Link to post
Share on other sites
  • 0

seems like ur hercules doesn't support ModExp etc, so try this: http://upaste.me/c7e61152390d2e65d

still the same. not working when attack the poring with non premium and with premium account. :(

 

Joven,

 

can you please not double, triple, and quadruple post...Please follow our Hercules Forum Rules. If you have more information, please edit your last reply instead of making multiple ones... which then leads you to tripling and even quadrupling your postings.

sorry sir , pardon my internation connection was too laggy.

 

seems like ur hercules doesn't support ModExp etc, so try this: http://upaste.me/c7e61152390d2e65d

can i ask is it per account or per character?

Share this post


Link to post
Share on other sites
  • 0

 

seems like ur hercules doesn't support ModExp etc, so try this: http://upaste.me/c7e61152390d2e65d

can i ask is it per account or per character?

 

it is per account, btw do you see the icons of the buff on the right side of the client? any error on console? try with a new account!

 

 

PS: you posted 3 times again :P

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.