let me check
|
didnt have one of the ports forwarded to right ip. its fixed now so u can try again if u wish
|
There we go, logging in now.
|
Well gambling bot is working sort of. It skips the second quest::say and returns any plat you give it also it always rolls a 0.
heres the script i have so far #Script for a gambling bot based on random numbers sub EVENT_SAY { if ($text =~/Hail/i) { quest::say ("Greetings $name. Would you like to place a [wager]?"); } if (&text =~/wager/i) { quest::say ("You place a wager anywhere from one to ten platinum. I then generate a random number between 0 and 10. It works like this. Wager multiplied by the number generated. If you wish to try your luck give me the number of platinum you wish to wagerand i will generate a number for you.");} sub EVENT_ITEM { if($platinum == 1) { $random_result = 0; my $random_result = int(rand(10))+1;} { quest::say("You rolled a $random_result!");} { quest::givecash("0","0","0","$platinum*$random_res ult")} } } |
doh just saw the mistake lol an & sing instead of $ oops
|
Ok fixed the quest say but still getting platinum back and the random is always 0
|
Would you like my gambling script?
|
That would be great and i still cant find my mic lol
|
If the roll is what you said you get back five times what you put in.
Here you go: Code:
sub EVENT_SAY |
lol waiting on the server to catch up bot still using old script even though its been changed and saved
|
Haha, type #reloadpl, the server doesn't naturally reload scripts.
|
might want to add a check to make sure the client chose a number in the correct range and that it returns all money if no selection was made.
|
The script you posted works for you right?
EDIT: Nm I fixed it by changing plugin::whisper to $client->Message |
I am trying to use Zamathos's script but it will not cast group buffs only single player. While in a group it will only single character that hails, speed, KEI, cure, heal.
Any ideas on how to get this to work to cast group buffs? Maybe even an option to click group or solo? I am not a programmer, but I have a solo server for me and my 10 year old step son to play on that I am adding customizations. Volkmeer |
Zamthos released all his code, you can find more info in the link below. In his quests directory, under poearthb, the Verdai.pl script is the one you want. Thanks again Zamthos...
http://www.eqemulator.org/forums/showthread.php?t=37185 |
All times are GMT -4. The time now is 05:41 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.