Jump to content
  • 1
fiction

Request Invasion Cash

Question

hello,

anyone can make a invasion with cash system.

With the follow:

  • Random cash per kill monster 1 ~ 5
  • Announce all monster reaming.
  • Random Map Invasion
  • Configurable hours
  • when kill all the monster, only one MvP appears, that MvP grants 25 cash point to the winner
  • Announce who kill the MvP

Who creates this script help me so much about scripting structure.

Thanks in advance and Greetings!

edited all

Edited by fiction

Share this post


Link to post
Share on other sites

11 answers to this question

Recommended Posts

  • 0

@Emistry How can I increase the duration of the event to 10 minutes?

Share this post


Link to post
Share on other sites
  • 0
15 minutes ago, maken06 said:

@Emistry How can I increase the duration of the event to 10 minutes?

set .Duration,1;

change the duration 

Share this post


Link to post
Share on other sites
  • 0
40 minutes ago, Cyro said:
set .Duration,1;

change the duration 

// Invasion Duration ( Minutes )
set .Duration,10;

sleep ( .Duration * 100000 );

Like this? @Cyro

Share this post


Link to post
Share on other sites
  • 0
11 hours ago, maken06 said:

// Invasion Duration ( Minutes )
set .Duration,10;

sleep ( .Duration * 100000 );

Like this? @Cyro

for this line not need to change

sleep ( .Duration * 100000 );

just change at this line

// Invasion Duration ( Minutes )
set .Duration,10;

 

  • Love 1

Share this post


Link to post
Share on other sites
  • 0
On 8/8/2012 at 12:24 AM, Emistry said:

How can add in this part   

announce "Monster Remain : "+mobcount( .RandomMap$,strnpcinfo(0)+"::OnKilled" ),0;

something to show the name of the map where they are killing monsters?

Share this post


Link to post
Share on other sites
  • 0

Hi, how can add more mvps and delete normal mobs, i tried a lot of times and just... i'm a fool :c hahaha :c

Share this post


Link to post
Share on other sites
  • 0

how about if you want to give a specific item

Share this post


Link to post
Share on other sites

try this...

http://pastebin.com/raw.php?i=ecVS1Yi5

just a prototype script....not yet run to test...

set the configuration that you want...

for random cash...

set #CASHPOINTS,#CASHPOINTS + rand(1,.Cash[0]);

Share this post


Link to post
Share on other sites

thx Emistry.

now,

  • when the event start announce this " INVASION has started at . "
  • don't announce reamings monsters in whole server. Example: 100...99.88..55.44.22.11..mob reaming.

How can i add more mobs, not only porings?.

thx for reply :D!

@edit

[Error]: script_rid2sd: fatal error ! player not attached!

[Debug]: Source (NPC): Sample (invisible/not on a map)

[Warning]: script:get_val: cannot access player variable '#CASHPOINTS', defaulti

ng to 0

 

On 8/8/2012 at 1:24 PM, Emistry said:

Thank You, i forget to mention something 😕

Need to put more Boss Ids, but only summon One boss random.

Sorry for my insistence

Edited by fiction

Share this post


Link to post
Share on other sites

edit this line then....

for( set [email protected],0; [email protected] < getarraysize( .BossCount ) - 1; set [email protected],[email protected] + 1 )
 monster .RandomMap$,0,0,"INVASION BOSS",.BossCount[[email protected]],.BossCount[[email protected]+1],strnpcinfo(0)+"::OnBossKilled";

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


×
×
  • Create New...

Important Information

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