Jump to content
  • 0

[Paid] Modified poring event


c2greentea

Question


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  173
  • Reputation:   0
  • Joined:  06/07/14
  • Last Seen:  

-	script	PoringEvent	-1,{

OnClock0030:
OnClock0230:
OnClock0430:
OnClock0630:
OnClock0830:
OnClock1030:
OnClock1230:
OnClock1430:
OnClock1630:
OnClock1830:
OnClock2030:
OnClock2330:
	monster .maps$[(rand(getarraysize(.maps$)))],0,0,"Poring",1002,5,strnpcinfo(3)+"::OnPoringDead";
	announce "Five special Porings have spawned in random town maps!",0;
	end;

OnPoringDead:
	announce strcharinfo(0)+" has killed the Poring!",0;
	getitem 6153,30;
	end;

OnInit:
	setarray .maps$[0],"prontera","morocc","payon";
	end;
}

I want that a random number of Porings be summoned in different random maps, not just in one map. Not all porings shall be summoned in just one random map, but they must be spread in all random maps. I tried this script and players told me they all just spawned in Prontera. Pls help. Willing to pay

Link to comment
Share on other sites

12 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  173
  • Reputation:   0
  • Joined:  06/07/14
  • Last Seen:  

I'm not really knowledgeable in editing the codes. Can you help me? How do I edit that rand stuff if I only want to have total of 30 porings to be summoned in maximum 5 towns? Ready to tip!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  208
  • Reputation:   11
  • Joined:  05/31/12
  • Last Seen:  

I'm not really knowledgeable in editing the codes. Can you help me? How do I edit that rand stuff if I only want to have total of 30 porings to be summoned in maximum 5 towns? Ready to tip!

 

actually sir you can search it all in google :o 

Link to comment
Share on other sites


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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  173
  • Reputation:   0
  • Joined:  06/07/14
  • Last Seen:  

Emistry, can we do something like this? http://pastebin.com/PRQWtZYZ

 

There will be special porings and normal porings. Special porings hold the special item and normal porings dont have. And they must be scattered randomized number all over all maps that I put in the script.

Link to comment
Share on other sites


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


for( .@i = 0; .@i < .map_size; .@i++ ){

killmonster .map$[.@i],.npc_name$+"::OnPoringDead";

monster .map$[.@i],0,0,"Poring",1002,.poring_amount,.npc_name$+"::OnPoringDead";

monster .map$[.@i],0,0,"Poring",1002,100,""; // <--- NORMAL PORING

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  173
  • Reputation:   0
  • Joined:  06/07/14
  • Last Seen:  

Left "+mobcount( strcharinfo(3),.npc_name$+"::OnPoringDead" )+" Porings in this town

Does this translate to this for example? "Left 5 Porings in this town"?

 

Thanks for further helping, Emistry

Link to comment
Share on other sites


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

it show the number of special poring that still alive in that  town.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  173
  • Reputation:   0
  • Joined:  06/07/14
  • Last Seen:  

But in that script, the respective town from the 3 towns in the script won't be named, it will just broadcast "in this town" because it wasn't scripted, right? 


Can I also replace OnMinute30 to the ff?

 

OnClock0037:
OnClock0230:
OnClock0430:
OnClock0630:
OnClock0830:
OnClock1030:
OnClock1230:
OnClock1430:
OnClock1630:
OnClock1830:
OnClock2030:
OnClock2330:
Link to comment
Share on other sites


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


announce strcharinfo(0)+" has killed the Poring! Left "+mobcount( strcharinfo(3),.npc_name$+"::OnPoringDead" )+" Poring in "+strcharinfo(3),bc_all;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  173
  • Reputation:   0
  • Joined:  06/07/14
  • Last Seen:  

Can I also replace OnMinute30 to the ff?

 

OnClock0037:
OnClock0230:
OnClock0430:
OnClock0630:
OnClock0830:
OnClock1030:
OnClock1230:
OnClock1430:
OnClock1630:
OnClock1830:
OnClock2030:

OnClock2330:

 

I need to do it like that because i am monitoring how it goes, if OnMinute30 is enabled I won't know what time to check. :(


Did you receive $** in your PP acct I sent just a minute ago? It's for the help you're offering me. Pls check and thank you! :)

Edited by c2greentea
Link to comment
Share on other sites


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


OnClock0000:

OnClock0200:

OnClock0400:

if( !.status ){

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