Jump to content
  • 0

Poring king


xienne15

Question


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  226
  • Reputation:   11
  • Joined:  01/09/12
  • Last Seen:  

 

According to the video the drop is scattered all around the map of prt_fild08 is there a way we can do this? if we kill king poring its drop will be scattered all around the map?

 

i tried this but it doesnt make the item on the ground, and it shoule be drop in random places in that map thats why i try to put 0,0;

 

OnNPCkillEvent:
if(killedrid!=1002){ end;}
makeitem 969,1,"prt_fild08",0,0;
makeitem 969,1,"prt_fild08",0,0;
end;
}
Edited by xienne15
Link to comment
Share on other sites

10 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

*makeitem <item id>,<amount>,"<map name>",<X>,<Y>;
*makeitem "<item name>",<amount>,"<map name>",<X>,<Y>;

This command will create an item lying around on a specified map in the
specified location.

 itemid - Found in 'db/(pre-)re/item_db.txt'
 amount - Amount you want produced
 map name - The map name
 X - The X coordinate
 Y - The Y coordinate.

This item will still disappear just like any other dropped item. Like 'getitem',
it also accepts an 'english name' field from the database and creates apples if
the name isn't found.
If the map name is given as "this", the map the invoking character is on will be used.

Example:

makeitem 501,100,"this",0,0; //*note - Not sure if 0 should be used for random or -1*
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  226
  • Reputation:   11
  • Joined:  01/09/12
  • Last Seen:  

*makeitem <item id>,<amount>,"<map name>",<X>,<Y>;
*makeitem "<item name>",<amount>,"<map name>",<X>,<Y>;

This command will create an item lying around on a specified map in the
specified location.

 itemid - Found in 'db/(pre-)re/item_db.txt'
 amount - Amount you want produced
 map name - The map name
 X - The X coordinate
 Y - The Y coordinate.

This item will still disappear just like any other dropped item. Like 'getitem',
it also accepts an 'english name' field from the database and creates apples if
the name isn't found.
If the map name is given as "this", the map the invoking character is on will be used.

Example:

makeitem 501,100,"this",0,0; //*note - Not sure if 0 should be used for random or -1*
prt_fild08,233,20,0	script	Goldroom	139,{

OnNPCkillEvent:
if(killedrid!=1002){ end;}
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
makeitem 501,1,"this",-1,-1;
announce "hieasfhjsfjbdsgknsdognsdgndsa",0;
end;
}

Tried 0,0 and -1,-1 they dont drop the item

but it does the announcement but the item it is not dropped.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  185
  • Reputation:   53
  • Joined:  01/04/12
  • Last Seen:  

random, really? On all map? Maybe near monster after death? +rand few cells around it

 

 

command can't place on rand(with 0,0 or -1,-1)

 

because this check

if(!map_searchrandfreecell(m,&x,&y,flags&2?1:0))
		return 0;
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  226
  • Reputation:   11
  • Joined:  01/09/12
  • Last Seen:  

random, really? On all map? Maybe near monster after death? +rand few cells around it

random in 1 map, look at the video, after killing poring king the coins is appeared randomly in the whole prt_fild08 as if it is a big drop from poring king :).

Edited by xienne15
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  185
  • Reputation:   53
  • Joined:  01/04/12
  • Last Seen:  

random, really? On all map? Maybe near monster after death? +rand few cells around it

random in 1 map, look at the video, after killing poring king the coins is appeared randomly in the whole prt_fild08 as if it is a big drop from poring king :).

so do rand with script, rand(map_x, map_x_max)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  226
  • Reputation:   11
  • Joined:  01/09/12
  • Last Seen:  

 

random, really? On all map? Maybe near monster after death? +rand few cells around it

random in 1 map, look at the video, after killing poring king the coins is appeared randomly in the whole prt_fild08 as if it is a big drop from poring king :).

so do rand with script, rand(map_x, map_x_max)

Honestly i dont know hwere to put that, can you put it in this script?

 

 

prt_fild08,233,20,0    script    Goldroom    139,{

OnNPCkillEvent:
if(killedrid!=1002){ end;}
makeitem 501,1,"this",-1,-1;
end;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

Then try something like this:

-%TAB%script%TAB%poring_king%TAB%-1,{
OnPoringKingDead:
while(1){ makeitem(501,1,"this",rand(200),rand(200)); set .@a,.@a+1; if(.@a == 100){break;}}
end;
}

Edit:

Lol, I forgot to press send, was sitting on here for a few hours without sending it @.@; At anyrate, either this or the one in Patskie's link will work.

Edited by GmOcean
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  226
  • Reputation:   11
  • Joined:  01/09/12
  • Last Seen:  

How can i make this monster appear every 4 hours?



 

 

Then try something like this:

-%TAB%script%TAB%poring_king%TAB%-1,{
OnPoringKingDead:
while(1){ makeitem(501,1,"this",rand(200),rand(200)); set .@a,.@a+1; if(.@a == 100){break;}}
end;
}

Edit:

Lol, I forgot to press send, was sitting on here for a few hours without sending it @.@; At anyrate, either this or the one in Patskie's link will work.

How can i make this monster when died will respawn after 4 hours? it is said it only appears on every server restart.

 

-	script	helloworld	-1,{
OnInit:
	.itemID = 671;	// Edit your item here
	.amount_item = 100;// amount items to throw
	monster "prt_fild08",0,0,"I'm a Poring",1002,1,strnpcinfo(0) + "::OnMyMobDead";
	end;
OnMyMobDead:
	announce "The mob is now killed, the special drop is ready to catch in all maps.", 0;
	.@map$ = strcharinfo(3);
	while( .@i < .amount_item ) {
		do {
			.@x = rand( 1,300 );
			.@y = rand( 1,300 );
		}
		while( !checkcell( .@map$,.@x,.@y,cell_chkpass ) );
		makeitem .itemID,1, .@map$, .@x, .@y;
		.@i++;
	}
	end;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

You can either add an npctimer, or you can simply just add all the OnClock variables directly after OnInit:

so it'll look like this:

OnInit:
OnClock0000:
OnClock0400:
OnClock0800:
OnClock1200:
OnClock1600:
OnClock2000:
blah blah blah script commands;
end;
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...