Jump to content

"regentype" argument in mob spawn


Euphy

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

Aegis includes "respawn type" as the last argument in its monster spawn:

declare putmob snnnnnnnnn? ENUM++ // ["spawn map"] [centroid x],[y] [coordinate range x],[y] [number spawned] [monster id], [respawn time min], [respawn time max], [respawn type]

We've carried the values over into our mob spawns, even though our field currently doubles as an event field:

anthell01,0,0,0,0    monster    Maya Purple    1289,1,7200000,3600000,1

"0" is the usual value, but does "1" have any meaning?

If it's important, 'regentype' should be separated from the 'event' field. This would create one more optional argument, making permanent monster spawns look like:

map,x1,y1,x2,y2    monster    "name,lv"    id,amount,min_regen,max_regen,eventname,size,ai

sscanf(w4, "%d,%d,%u,%u,%127,%d,%d,%d[^\t\r\n]", &class_, &num, &mob.delay1, &mob.delay2, mob.regentype, mob.eventname, mob.size, mob.ai ) < 2 )

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
Reply to this topic...

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