Jump to content

Recommended Posts

being asked too much in script request section, so better just release one

 

script
emp_breaker_ladder_1.0.txt
patch ... no need recompile ...
http://upaste.me/0b1d4993914f05487

 

what this script do ?
hmm ... just display the top players who has broke emperium ..

 

 

Edited by AnnieRuru

Share this post


Link to post
Share on other sites

Diff file is not put anywhere, it's a file so that some tools can automatically apply it on your files, but you can do so manually. You can manually perform these changes without the need of an automated tool. This diff is particularly simple to apply:

 

On npc/guild/agit_main.txt look for:

OnAgitBreak:
Add after that:
	query_sql "update `char` set empbreak = empbreak +1 where char_id = "+ getcharid(0);
 

On npc/guild/agit_main_se.txt look for:

OnStartArena:
Add after that:
	query_sql "update `char` set empbreak = empbreak +1 where char_id = "+ getcharid(0);

And don't forget to add the SQL addition on your database that comes with the NPC!

Share this post


Link to post
Share on other sites

hmmmp.. i dont get this one

 

/* SQL Query

alter table `char` add empbreak int(11) unsigned not null default 0 after unban_time, add index (empbreak);
*/
 
please check my 2 screen shots if i do it correctly
is this correct?
zyg70y.jpg
 
or this one
257ogld.jpg

Share this post


Link to post
Share on other sites

hmmmp.. i dont get this one

 

/* SQL Query

alter table `char` add empbreak int(11) unsigned not null default 0 after unban_time, add index (empbreak);

*/

 

please check my 2 screen shots if i do it correctly

is this correct?

zyg70y.jpg

 

or this one

257ogld.jpg

the first one...

create empbreak inside "char" columns

 

 

_____________________________________________________________________________

 

 

btw how can i add announce for who break the emperium ?

 

 

Thx for help :D

 

 

 

edited

done

 

I add

 

announce ""+ strcharinfo(0) +" has destroyed the Emperium in the map [" +strcharinfo(3) +"]",bc_blue;

or

announce "["+ strcharinfo(0) +"] has destroyed the ["+getcastlename(strnpcinfo(2))+"] Emperium",bc_all,0x800080;

 

after

 

query_sql "update `char` set empbreak = empbreak +1 where char_id = "+ getcharid(0);

Edited by mrdominic

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
Reply to this topic...

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

×
×
  • Create New...

Important Information

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