Jump to content

  •  

sever

Member Since 09 Aug 2014
Offline Last Active Private
-----

Posts I've Made

In Topic: @autobuyammo

15 December 2014 - 04:52 AM

Not working. Everything went fine with compiling and command says it's ON but it doesn't buy the arrows when empty. Yes I added the npc script.

it should be working.

 

you must have an ammunition equipped and player session variable set (non-zero) should be @SP_AUTOBUYAMMO_GODD:

if((sd->equip_index[EQI_AMMO]>=0) && ( pc->readreg(sd,script->add_str("@SP_AUTOBUYAMMO_GODD")) ))

 

and it triggers when your ammunition amount is going to be zero(last arrow left during shooting) or ??!zero??(sd->equip_index[EQI_AMMO]>=0):

if( amount <= 1 )

 

you must have (arrow/bullet/ammo cost + 5) * 10 pcs zenny:

unsigned int nzeny = ( i_data->value_buy + 5 )*10;            if( !pc->payzeny(sd, nzeny, LOG_TYPE_NONE, NULL) )

 

it would only buy 9 ((ammo price + 5) * 10 pcs > 9pcs):

flag = pc->additem(sd, &it, 9, LOG_TYPE_NONE);

after you've shot your last ammo, the plugin would autobuy you 9 arrows

 

 

and also if its included in conf/plugins.conf (with compiled .so file, product of gcc or included in src/plugin/Makefile.in)


In Topic: How to do SQL updates?

23 November 2014 - 05:52 AM

Thanks jaBote.


In Topic: How to do SQL updates?

22 November 2014 - 09:36 PM

is this the command?

 

sql update sql-files/upgrades/2014-09-01--16-53.sql

 

i'm very cautious as there is no revert for this.


In Topic: King of Emperium Hill

20 November 2014 - 09:20 PM

Thanks AnnieRuru.


In Topic: roBrowser - Ragnarok Online for Web Browsers

21 October 2014 - 07:24 PM

Thanks, It was resolved after your updates.

 

I haven't went back to developing robrowser lately.

But it seems that your demo robrowser has lesser lag than mine.

 

Is wsproxy slowing the browser?

How do I boost latency?

 

I also tried the mail system. Maybe my server setup for mail system is broken.

 

Thanks.