[Question] About Lottery

08/16/2010 12:01 rule34onyourmom#1
i need help putting a limit on lotto i cant figure it out.. and how to make sure there say level 70 or higher?? any help will do..

Thanx in advance.
08/16/2010 12:57 ~*NewDuuDe*~#2
Wrong section.

Anyways, just do and if statement for their level and if they fail it do an else which tell them that you can't enter lottery until you are level 70.
08/16/2010 16:10 Die Schnittstelle#3
i guess you mean your private server.

#moved
08/16/2010 16:46 pro4never#4
As they said. Code checks into the npc to enter.


Eg:

If(gc.mychar.level > 69)
{
///works
}
else
//not high enough


For limit make a new char value for plays per day. Write a save/load function to updare/read from char database and then some value (date time most likely) so you can reset it daily.

On play check gc.mychar.lottopllays < 10 and then do ++ to boost it by one on each sucessful play.

Make sure you are saving db value and readong from it on login. If not you will be able to /dc and play 10x more.

There is a guide for this out already i'm rather sure.

Best of luck
08/16/2010 23:56 rule34onyourmom#5
I need it for TQ Binaries Not C# :(
08/17/2010 09:20 Fish*#6
Then there is not much help here, there is some few peoples that work with binaries here.
The reason is that binaries aren't allowed here :)

Goodluck
08/17/2010 21:39 rule34onyourmom#7
thats not much help :( why are they not allowed?
08/18/2010 10:07 Fish*#8
because we dont like stuff leeched here.
08/18/2010 11:45 kinshi88#9
Quote:
Originally Posted by grillmad View Post
because we dont like stuff leeched here.
Yet you leach so much lol
08/18/2010 13:02 Fish*#10
Quote:
Originally Posted by kinshi88 View Post
Yet you leach so much lol
not really.
I have not leeched LOL.
Always give credit and most of time use my own codes :)
Thanks

remember is not a leech, if things are released :)
08/18/2010 17:22 pro4never#11
Th actual reason bins aren't allowed is that they are illegal files and epvp could get sued by tq for hosting them. ervers using them tend to get alot of letters from tq's legal dept also as they own the bin files.