EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Buff bot script (https://www.eqemulator.org/forums/showthread.php?t=36547)

Dabloon 02-23-2013 09:22 AM

Thanks man you rock

Dabloon 02-23-2013 09:49 AM

Thanks man you rock

Dabloon 02-23-2013 10:38 AM

If i wanted the npc to give money equal to $random_result would it be something like

quest::givecash("0","0","0","1*$random_result");

c0ncrete 02-23-2013 11:29 AM

there is no need to use quotations around numbers.
there is also no need to multiply a number by 1, since you just get the same number.

Dabloon 02-23-2013 03:56 PM

The idea behind 1*$random_result is like say a player gives 1 platinum and the $random_result is 5 then the player would recieve 5 platinum. Basically 1*5.
Say they gave 2 platinum then it would be 2*$random_result and say the random was 5 the player would then recieve 10 platinum etc etc according to how much plat they gave

Zamthos 02-23-2013 04:04 PM

You would do this:
Code:

quest::givecash($copper*$random_result,$silver*$random_result,$gold*$random_result,$platinum*$random_result);
The way you have yours is a set value rather than how much platinum they actually gave the NPC.

c0ncrete 02-23-2013 04:23 PM

you should also be aware that int(rand(10)) will only ever return 0 - 9.
if you want it to return 1 - 10, you need to use int(rand(10))+1.

Dabloon 02-23-2013 05:50 PM

Thanks for the help guys will try that out

Zamthos 02-23-2013 05:50 PM

You're welcome. May I ask if your server is public or privately hosted?

Dabloon 02-23-2013 08:02 PM

If by public you mean others can play on it then yes its public but its hosted here at my home on a road runner connection.

Zamthos 02-23-2013 08:28 PM

I had Road Runner, they're pretty good, I just hate their router setup, what is the name of your server, sir?

Dabloon 02-23-2013 08:31 PM

FBT double xp no charge buffbot

Zamthos 02-23-2013 08:57 PM

Can you log on so we can play together? Also, is it RoF Compatible?

EDIT: Can't connect, I load for 5 minutes and disconnect.

Dabloon 02-23-2013 09:10 PM

Im on now testing gambling bot and yes ROF should work

Zamthos 02-23-2013 09:21 PM

Your server isn't allowing outside connections, is it port-forwarded correctly? 0.o


All times are GMT -4. The time now is 05:15 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.