The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades.
×
- 0
Using @summon with a % after killing each mob.
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
JulianD
Greetings appreciated development community,
I'm trying to create a system that allow players to summon the monster they killed with a variable % chance:
For example:
After killing 1 Poring, it will have a 100% chance of using "@summon Poring 60" (60 will mean that the summon will last for 60 minutes)
After killing 1 Eddga, it will have a 5% chance of using "@summon Eddga 60"
This is so far what I have written: (I'm a beginner scripter, so I don't certainly know what I'm doing)
This code allowed the players to summon a poring after killing it with a 100% chance, but I don't know how to make it work with a different % chance.
Additionally, I don't know how to add multiple entries depending on different mob IDs.
I would also like to know if there is any way to autodetect the monster ID that was killed, to avoid writing +1000 entries of different monsters in the script.
Thank you for your assistance, I really appreciate it.
Best regards,
Julián Díaz
Passionate Human Being
Edited by JulianDLink to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.