Jump to content

Question

Posted (edited)

Start Every 2hrs

1: NPC announce the event is start

2:NPC summon 100 poring mob

3: who the 1st killed of 30 poring mobs she/he the win.

 or else no one killed 30 poring after killed all poring

4: get item 7227 10

Edited by Blue Jem

5 answers to this question

Recommended Posts

Posted


- script PoringMob -1,{

OnMinute00:

if(!(gettime(3) % 2)) {

announce "Poring mob has started",0;

monster "prontera",123,42,"--ja--",1002,100,strnpcinfo(1)+"::OnPoringDeath";

}

end;

OnPoringDeath:

@PoringKill++;

if(@PoringKill == 30) {

announce strcharinfo(0)+" is the winner!",0;

killmonster "prontera","All";

getitem 7227,10;

}

end;

}

Posted

I'm not sure if what functions are unsupported by eA.. Try this..

-	script	PoringMob	-1,{

OnMinute00:
	if(!(gettime(3) % 2)) {
		announce "Poring mob has started",0;
		monster "prontera",123,42,"--ja--",1002,100,strnpcinfo(1)+"::OnPoringDeath";
	}
	end;

OnPoringDeath:
	set @PoringKill,@PoringKill+1;
	if(@PoringKill == 30) {
		announce strcharinfo(0)+" is the winner!",0;
		atcommand "@killmonster2";
		getitem 7227,10;
	}
	end;

}

It would also be helpful if you would just post a screenshot of your console where it shows the error >_>

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...