plugin::RandomSay && plugin::RandomEmote
Hi! This is a sudden daily occurrence. But I made another plugin to simplify the making of scripts.
The plugin itself is fairly simple, you declare the amount of messages you want the plugin to execute, and then quote the messages after the declare. There are two parts to this plugin function. RandomSay and RandomEmote. It works well for random npc says and random npc emotes (helpful when making aggro messages). The number that you see below before the messages represents the amount of messages you want the NPC to take into account. It works 1-6 and that's it. Hope you find this helpful. I'll probably be making more. Code:
sub EVENT_SAY Code:
###Usage: plugin::RandomSay(numberofrandommessages,"message1","message2","message3","message4","message5","$message6"); |
I haven't tested this yet, but I am pretty sure you can simplify that down to just the following and it won't have a limit to how many messages you can send and also doesn't require you to put the count of how many messages you are using:
Code:
###Usage: plugin::RandomSay("message1","message2", etc..); http://www.eqemulator.org/forums/showthread.php?t=30421 |
I added a new chance field to the script I posted above as well as simplified them a bit.
Code:
###Usage: plugin::RandomSay(chance(1-100), "message1","message2", etc..); |
All times are GMT -4. The time now is 10:58 PM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.