Jump to content
  • 0

Mushroom Event.


RedRumPie

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  76
  • Reputation:   1
  • Joined:  01/21/14
  • Last Seen:  

Hello, I am running a latest version of rAthena from github latest as of now ( 2/3/2014 ) and my problem is I think all spawning events that I put in my server won't work . Just like this one 

prontera,123,171,5	script	Find the Mushroom	1084,{
if((.Status ) == 0) {
	
	mes "[ Find The Mushroom ]";
	mes "There is no event at the moment!";
} else {
	mes "There are "+.Mushroom+"s left in "+.Map$+" now!";
	mes "Find and Kill the mushrooms to gain 1 x Event Ticket!";
}
close;

OnMinute5:
	set .Spawn,rand(1,2);
	// Random Maps
	set $@ran, rand(1,4);
	if ($@ran == 4) set .Map$,"izlude";
	if ($@ran == 3) set .Map$,"geffen";
	if ($@ran == 2) set .Map$,"morocc";
	if ($@ran == 1) set .Map$,"prontera";
	killmonster .Map$,"All";
	monster .Map$,0,0,"Please don't kill me!",1084,.Spawn,strnpcinfo(0)+"::OnMobKilled";
	announce "Find the Mushroom : Total of "+.Spawn+" Mushrooms have been Spawned in "+.Map$+"!",0;
	sleep2 10000;
	announce "Find the Mushroom : Every single Mushroom you kill will give you 1 x Event Ticket!",0;
	sleep2 10000;
	end;

OnMobKilled:
	set .Spawn,.Spawn - 1;
	getitem 7726,1;
	if( .Spawn ) announce "[ "+strcharinfo(0)+" ] has killed 1 Mushroom. There are now "+.Spawn+" Mushroom(s) left.",bc_map;
	else {
		announce "Find the Mushroom Event has ended. All the Mushrooms have been Killed.",0;
		set .Status,0;
	}
	end;
}

I'm wondering why . I set the onMinute to 5 so it means it will spawn a random mushroom number from 1 to 2 on a random map listed above but I waited for 5 mins but nothing spawns , I also put a random boss spawn event and it work work too . Can anyone help me ? 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  567
  • Reputation:   18
  • Joined:  04/15/13
  • Last Seen:  

@Try not to set two events on same time like Mushroom OnMinute30: Disguise OnMinute5:

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  76
  • Reputation:   1
  • Joined:  01/21/14
  • Last Seen:  

thank you for helping everyone . problem solved. 

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