Register for your free account! | Forgot your password?

You last visited: Today at 23:01

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



LadyLuck

Discussion on LadyLuck within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2010
Posts: 29
Received Thanks: 8
LadyLuck

Guys i have another question hehe the source i got the ladyluck is infinity. How can i set it to be only 10 per day? thanks
PrettyGodness is offline  
Old 05/16/2010, 02:30   #2
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Do a simple if check.
if (GC.MyChar.LotteryUsed)
I think the definition is lotteryused.
Arcо is offline  
Thanks
1 User
Old 05/16/2010, 03:48   #3
 
elite*gold: 0
Join Date: May 2010
Posts: 29
Received Thanks: 8
Thanks a lot i made this:

if (GC.MyChar.LotteryUsed >= 10)
{
GC.AddSend(Packets.NPCSay(("You cant try the luck more than 10 times. bye")));
GC.AddSend(Packets.NPCLink("Alright!", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());

}
PrettyGodness is offline  
Thanks
1 User
Old 05/16/2010, 03:52   #4
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
Quote:
Originally Posted by PrettyGodness View Post
Thanks a lot i made this:

if (GC.MyChar.LotteryUsed >= 10)
{
GC.AddSend(Packets.NPCSay(("You cant try the luck more than 10 times. bye")));
GC.AddSend(Packets.NPCLink("Alright!", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());

}
i like to see is going forward
.Summer is offline  
Old 05/16/2010, 04:08   #5
 
elite*gold: 0
Join Date: May 2010
Posts: 29
Received Thanks: 8
lol i thought was working but its not lmao it gives the "You cant try the luck more than 10 times. bye" but it enter lol
PrettyGodness is offline  
Old 05/16/2010, 04:11   #6
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
Code:
if (GC.MyChar.LotteryUse == 10)
{
GC.AddSend(Packets.NPCSay(("You cant try the luck more than 10 times. bye")));
GC.AddSend(Packets.NPCLink("Alright!", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
then when enter put:
Code:
GC.MyChar.LotteryUse += 1;
then in character.cs put a
Code:
public int LotteryUse = 0;
but also you will need some timer to check if there have been 24hours.
.Summer is offline  
Old 05/16/2010, 04:23   #7
 
elite*gold: 0
Join Date: May 2010
Posts: 29
Received Thanks: 8
didnt work yet =\ do u have msn? Look i put

if (GC.MyChar.LotteryUse == 10)


{
GC.AddSend(Packets.NPCSay(("You cant try the luck more than 10 times. bye")));
GC.AddSend(Packets.NPCLink("Alright!", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
GC.MyChar.LotteryUse += 1;
}
PrettyGodness is offline  
Old 05/16/2010, 04:25   #8
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
you have to put += 1
after the teleport


but im not on right now
.Summer is offline  
Old 05/16/2010, 19:07   #9
 
gerble93's Avatar
 
elite*gold: 40
Join Date: Sep 2006
Posts: 1,890
Received Thanks: 805
Well do this.. if not already..

Define it in the character.cs location (default 0)
Make it save and load with the save function and load function
Make a timer that clears it every 24 hrs...
make it so once u get your prize it adds up..
make it check in the npc.. allow or disallow..
ur done.
gerble93 is offline  
Old 05/17/2010, 00:04   #10
 
elite*gold: 0
Join Date: May 2010
Posts: 29
Received Thanks: 8
Thanks guys i downloaded another source i fixed almost of my problemas thanks a lot
PrettyGodness is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Tiny Release]CPs in LadyLuck boxes(Better gear = more cps)
11/15/2009 - CO2 PServer Guides & Releases - 2 Replies
This a tiny release taht everyone should be possible to make. I thought i would release it anyway. Here it is. BTW. is for LOTF. NPC Talk (this is mine, but you dont have to use it lol, cause is already in LOTF): if (CurrentNPC < 506 && CurrentNPC > 499) { SendPacket(General.MyPackets.NPCSay("You sure you will choose this box?")); ...
Removing LadyLuck
09/09/2009 - Conquer Online 2 - 10 Replies
So im kinda addcited to lotto and i want LadyLuck gtfo my life :)Someone knows how to that.Please tell:)
[RELEASE]LadyLuck CoEmu!!
05/29/2009 - CO2 PServer Guides & Releases - 6 Replies
ladyluck coords are map 1036 x212 y188 , u also can add in code the lvl 70 req if (CSocket.Client.Level >= 70) here also guild keeper: press thanks if i helped u!!
ladyluck
05/17/2008 - Conquer Online 2 - 6 Replies
when i join ladyluck i recived metor or something not good :( i want to know how to make my chance in ladyluck is good what is the best time to to to ladyluck & win something good i spend many cps for it & i didn't recive anything good plz help me



All times are GMT +2. The time now is 23:01.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.