Jump to content
  • 0

Limiting @summon?


GreenMagic793

Question


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   18
  • Joined:  08/18/15
  • Last Seen:  

Hey guys,

 

I created an item which lets my players summon a poring monster, which is pretty cool, but the big problem is that I don't want players to be able to keep summoning monsters over and over, I want there to be a limit. How do I make it so that there is a limit to the number of monsters that can be spawn by an item which uses @summon? Thanks in advance.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Content Moderator
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  639
  • Reputation:   596
  • Joined:  11/25/11
  • Last Seen:  

Well, it depends HOW you want to do this.
If you want only one to be summoned at a time, It's fairly simple:

@summon <monster name/ID> {<duration>}

Spawns mobs that treat you as their master.
If a duration is specified, they will stay with you until the duration has ended.

@summon has a duration field (in minutes), once you set it on item usage, you just need to put a delay on Item with the same duration the monster lasts.
You can edit Item Delays on db/(pre-)re/item_delay.txt.

If it's not what you wnat, be more specific, there's other ways to do it.

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   83
  • Joined:  08/11/12
  • Last Seen:  

Hey guys,

 

I created an item which lets my players summon a poring monster, which is pretty cool, but the big problem is that I don't want players to be able to keep summoning monsters over and over, I want there to be a limit. How do I make it so that there is a limit to the number of monsters that can be spawn by an item which uses @summon? Thanks in advance.

 

You will definitely need a source modification for this one.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

Why don't you add an variable check in the item script? Or make a function to call the variable?

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