Jump to content
  • 1

Request Invasion Cash


fiction

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  44
  • Reputation:   1
  • Joined:  01/03/12
  • Last Seen:  

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
Link to comment
Share on other sites

11 answers to this question

Recommended Posts

  • 1

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  234
  • Reputation:   113
  • Joined:  02/24/15
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

15 minutes ago, maken06 said:

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

set .Duration,1;

change the duration 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  234
  • Reputation:   113
  • Joined:  02/24/15
  • Last Seen:  

40 minutes ago, Cyro said:

set .Duration,1;

change the duration 

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

sleep ( .Duration * 100000 );

Like this? @Cyro

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  1167
  • Reputation:   159
  • Joined:  06/12/12
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  234
  • Reputation:   113
  • Joined:  02/24/15
  • Last Seen:  

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?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  3
  • Reputation:   0
  • Joined:  07/16/20
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.15
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

how about if you want to give a specific item

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

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]);

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  44
  • Reputation:   1
  • Joined:  01/03/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

edit this line then....

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

Link to comment
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...