Thanks man you rock
|
Thanks man you rock
|
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"); |
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. |
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 |
You would do this:
Code:
quest::givecash($copper*$random_result,$silver*$random_result,$gold*$random_result,$platinum*$random_result); |
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. |
Thanks for the help guys will try that out
|
You're welcome. May I ask if your server is public or privately hosted?
|
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.
|
I had Road Runner, they're pretty good, I just hate their router setup, what is the name of your server, sir?
|
FBT double xp no charge buffbot
|
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. |
Im on now testing gambling bot and yes ROF should work
|
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.