Jump to content

makeitem


Nameless2you

Recommended Posts


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   52
  • Joined:  11/15/11
  • Last Seen:  

So I've come across this new command makeitem, it's pretty nice but I got 2 suggestions for it.

  1. Enable omitting x & y, so the item can be spawned randomly on the map.
  2. Enable x1,y1,x2,y2; that way you could specify the location of the item within a specific area.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  134
  • Reputation:   35
  • Joined:  02/27/12
  • Last Seen:  

About the first, it could be 0 0 as x & y, so this function would be random.

About second, you can use rand function to get it, but it's a useful suggestion.

Edited by MarkZD
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

What would be the purpose of x1 y1 x2 y2, to spwan one item is the specific area ?

Well you can already do the random x and y first to spawn in given are than invoque the fonction

e.g

.@x1 = xmin; .@y1 =ymin; //min xy of square
'@x2 = xmax; .@y2 = ymax //max xy of square
.@x = rand()%(.@x2-.@x1)+.@x1; //get a random x in square
.@y = rand()%(.@y2-.@y1)+.@y1; //get a random y in square
makeitem (601,1,.@x,.@y);

but yeah could be easier if integrated to makeitem fonction, what the issue (well not that hard) will be to keep backward compatibility for current makeitem fonction. (like will need to add x2 and y2 as option...)

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