|
You last visited: Today at 23:35
Advertisement
[Help] Garments 7Days?
Discussion on [Help] Garments 7Days? within the CO2 Private Server forum part of the Conquer Online 2 category.
03/11/2014, 00:02
|
#1
|
elite*gold: 0
Join Date: Jan 2014
Posts: 36
Received Thanks: 1
|
[Help] Garments 7Days?
anyone have idea how to make the items Garments/Accessorys 7 days?
Ex:
|
|
|
03/11/2014, 06:07
|
#2
|
elite*gold: 0
Join Date: Jun 2012
Posts: 179
Received Thanks: 55
|
Quote:
Originally Posted by -Shunsui-
To spawn the Activation time : Item Packet Offset : 60 as Uint32, You write the total Seconds of the time left,
|
^That might help. And I think its Item Packet 1009 : 41 for activation.
|
|
|
03/11/2014, 12:17
|
#3
|
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 239
|
1st method
one with time in min.
PHP Code:
360008@@FishPole@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@65535@@65535@@0@@0@@0@@0@@0@@0@@0@@0@@0@@1@@800@@2@@2@@1@@50000@@0@@[COLOR="Red"]10080[/COLOR]@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@1-HandedAccessory@@None.@@8@@0@@0@@0@@
one without time
PHP Code:
360028@@FishPole@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@65535@@65535@@0@@0@@0@@0@@0@@0@@0@@0@@0@@1@@800@@2@@2@@1@@50000@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@1-HandedAccessory@@Right~click~to~equip.@@8@@0@@0@@0@@
2nd mehtod
PHP Code:
public uint TimeLeftInMinutes { get { return BitConverter.ToUInt32(Buffer, 60); } set { WriteUInt32(value, 60, Buffer); } }
PHP Code:
item.DayStamp = DateTime.Now; item.Days = 7; TimeSpan Remain = item.DayStamp.AddDays(item.Days) - DateTime.Now; item.TimeLeftInMinutes = (uint)Remain.TotalSeconds;
|
|
|
03/11/2014, 19:22
|
#4
|
elite*gold: 0
Join Date: Mar 2009
Posts: 30
Received Thanks: 18
|
Quote:
Originally Posted by abdoumatrix
1st method
one with time in min.
PHP Code:
360008@@FishPole@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@65535@@65535@@0@@0@@0@@0@@0@@0@@0@@0@@0@@1@@800@@2@@2@@1@@50000@@0@@[COLOR="Red"]10080[/COLOR]@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@1-HandedAccessory@@None.@@8@@0@@0@@0@@
one without time
PHP Code:
360028@@FishPole@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@65535@@65535@@0@@0@@0@@0@@0@@0@@0@@0@@0@@1@@800@@2@@2@@1@@50000@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@1-HandedAccessory@@Right~click~to~equip.@@8@@0@@0@@0@@
2nd mehtod
PHP Code:
public uint TimeLeftInMinutes { get { return BitConverter.ToUInt32(Buffer, 60); } set { WriteUInt32(value, 60, Buffer); } }
PHP Code:
item.DayStamp = DateTime.Now; item.Days = 7; TimeSpan Remain = item.DayStamp.AddDays(item.Days) - DateTime.Now; item.TimeLeftInMinutes = (uint)Remain.TotalSeconds;
|
he will alsoo need t change it in the database too otherwise it wont work
|
|
|
03/14/2014, 03:29
|
#5
|
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 239
|
2nd mehtod
edit this in Conqueitem.cs
PHP Code:
public uint TimeLeftInMinutes { get { return BitConverter.ToUInt32(Buffer, 60); } set { WriteUInt32(value, 60, Buffer); } }
put this in inventory.cs
PHP Code:
public bool Add(uint id, byte plus, byte Bless, byte Hp, byte Soc1, byte Soc2, byte Days, byte times, bool bound = true) { try { Database.ConquerItemInformation infos = new Database.ConquerItemInformation(id, plus); while (times > 0) { if (Count <= 39) { ConquerItem item; item = new ConquerItem(true); { #region Stacksize if (infos.BaseInformation.StackSize > 1) { //item.StackSize = (byte)times; ushort _StackCount = infos.BaseInformation.StackSize; if (times <= infos.BaseInformation.StackSize) _StackCount = (ushort)times; item.StackSize = (ushort)_StackCount; Database.ConquerItemTable.UpdateStack(item); times -= (byte)_StackCount; } else { item = new ConquerItem(true); item.StackSize = 1; times--; } #endregion Stacksize item.ID = id; item.Plus = plus; item.Bless = Bless; item.Enchant = Hp; item.SocketOne = (Enums.Gem)Soc1; item.SocketTwo = (Enums.Gem)Soc2; item.DayStamp = DateTime.Now; item.Days = Days; item.Bound = bound; TimeSpan Remain = item.DayStamp.AddDays(item.Days) - DateTime.Now; item.TimeLeftInMinutes = (uint)Remain.TotalSeconds; item.Durability = item.MaximDurability = infos.BaseInformation.Durability; }; this.Add(item, Enums.ItemUse.CreateAndAdd); Database.ConquerItemTable.Update_Free(item, Owner); } else { return false; } // times--; } } catch (Exception e) { Program.SaveException(e); } return true; }
u had to make database save \ load .etc...
|
|
|
03/18/2014, 13:49
|
#6
|
elite*gold: 0
Join Date: May 2011
Posts: 82
Received Thanks: 4
|
For version 5095
|
|
|
03/19/2014, 01:27
|
#7
|
elite*gold: 0
Join Date: Aug 2009
Posts: 94
Received Thanks: 6
|
1st thanks very match for that help
2nd
i tried to add t
PHP Code:
item.DayStamp = DateTime.Now; item.Days = 7; TimeSpan Remain = item.DayStamp.AddDays(item.Days) - DateTime.Now; item.TimeLeftInMinutes = (uint)Remain.TotalSeconds;
in ConquerItem.cs but i field
can u help me more ?
|
|
|
03/20/2014, 05:15
|
#8
|
elite*gold: 0
Join Date: Aug 2009
Posts: 94
Received Thanks: 6
|
Quote:
Originally Posted by girgismena
1st thanks very match for that help
2nd
i tried to add t
PHP Code:
item.DayStamp = DateTime.Now; item.Days = 7; TimeSpan Remain = item.DayStamp.AddDays(item.Days) - DateTime.Now; item.TimeLeftInMinutes = (uint)Remain.TotalSeconds;
in ConquerItem.cs but i field
can u help me more ?
|
sorry
i was dont understanding
now i resolve that
but i have something wrong
both of items is permanent
360008 and 360028
it dosnt show that
unactivated: existence time 7 day
so can u tell me how can i make items show that ?
thanks again
|
|
|
03/22/2014, 01:48
|
#9
|
elite*gold: 0
Join Date: Jan 2014
Posts: 36
Received Thanks: 1
|
Quote:
Originally Posted by girgismena
sorry
i was dont understanding
now i resolve that
but i have something wrong
both of items is permanent
360008 and 360028
it dosnt show that
unactivated: existence time 7 day
so can u tell me how can i make items show that ?
thanks again
|
I have same problem
|
|
|
03/22/2014, 15:22
|
#10
|
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 239
|
explain with pic better
|
|
|
03/22/2014, 16:33
|
#11
|
elite*gold: 0
Join Date: Aug 2009
Posts: 94
Received Thanks: 6
|
Quote:
Originally Posted by abdoumatrix
explain with pic better
|
thanks for replay
and this the pic
this is pic of 360008
and this for 360028
it just said right click to equip
|
|
|
03/22/2014, 21:15
|
#12
|
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 239
|
cuz it from itemtype as i stated for method 1
|
|
|
03/22/2014, 21:19
|
#13
|
elite*gold: 0
Join Date: Aug 2009
Posts: 94
Received Thanks: 6
|
Quote:
Originally Posted by abdoumatrix
cuz it from itemtype as i stated for method 1
|
in itemstype like that
360008@@FishPole@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@ @0@@0@@0@@0@@0@@0@@0@@0@@65535@@65535@@0@@0@@0@@0@ @0@@0@@0@@0@@0@@1@@800@@2@@2@@1@@215@@0@@10080@@0@ @0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@1-HandedAccessory@@None.@@8@@0@@0@@0@@9030@@500@@
360028@@FishPole@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@ @0@@0@@0@@0@@0@@0@@0@@0@@65535@@65535@@0@@0@@0@@0@ @0@@0@@0@@0@@0@@1@@800@@2@@2@@0@@215@@215@@0@@0@@0 @@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@1-HandedAccessory@@Right~click~to~equip.@@8@@0@@0@@0 @@9030@@500@@
is i have to change something ?
btw if i use it i see it permanent and it didnt write anything at the bottom but if some1 check on me he see that accessory and it written at the bottom
unactivated: existence time 7 day and 0 hours
pic about that
i see that from same account
if some1 check on me he see that
|
|
|
03/23/2014, 14:55
|
#14
|
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 239
|
u should do something like this
PHP Code:
case 41: { // var item = Database.ConquerItemTable.LoadItem(usage.UID); ConquerItem item = new ConquerItem(true); if (client.Inventory.TryGetItem(usage.UID, out item)) { item.UID = usage.UID; item.DayStamp = DateTime.Now; item.Days = 7; TimeSpan Remain = item.DayStamp.AddDays(item.Days) - DateTime.Now; item.TimeLeftInMinutes = (uint)Remain.TotalSeconds; Database.ConquerItemTable.Update_Free(item, client); usage.dwParam = 5; client.Send(usage); } break; }
|
|
|
03/24/2014, 00:39
|
#15
|
elite*gold: 0
Join Date: Aug 2009
Posts: 94
Received Thanks: 6
|
that good work MR. Abdou
thanks alot
u r really profisional
|
|
|
|
Similar Threads
|
[Selling] LvL UP 1-80 10€ (7days)
03/17/2014 - Guild Wars 2 Trading - 17 Replies
Price :
-LvL up 1-80 10€
-new fresh account with every infos + lvl80 on it (account is created when you purshase it) 35€
lvl up 1-80 is not instant you need to wait 7days add 1-2days if theres some gw2 updates
free slot : 09/20
contact skype : gregus50
|
[S] 7Days To Die Key
10/05/2013 - elite*gold Trading - 2 Replies
^Topic macht mir bitte angebote danke
|
**********EXP 50% Plus 7days**********
11/27/2011 - CrossFire Trading - 4 Replies
***New***
http://www.elitepvpers.com/theblackmarket/treasur e/72459
http://www.elitepvpers.com/theblackmarket/treasur e/72404
http://www.elitepvpers.com/theblackmarket/treasur e/72401
http://www.elitepvpers.com/theblackmarket/treasur e/72375
http://www.elitepvpers.com/theblackmarket/treasur e/72374
http://www.elitepvpers.com/theblackmarket/treasur e/72329
PREIS VERHANDELBARRRRRRRRRRRRRRRRR
|
[V]EXP 50% Plus 7days !!!
12/23/2010 - CrossFire Trading - 7 Replies
HI, verkaufe EXP 50% Plus 7days suche eGold oder psc rest
habe nur ein Code !!
|
7Days Item? O_o
09/24/2005 - General Gaming Discussion - 13 Replies
http://img370.imageshack.us/img370/8453/7day0fv.jp g
Why 7 Days?
|
All times are GMT +2. The time now is 23:35.
|
|