Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

SendMail - pwAdmin Plugin

Robb
Loyal Member
Joined
Jan 22, 2009
Messages
1,224
Reaction score
466
important to define a mask number or the player will be unable to equipt it.
 
Robb
Loyal Member
Joined
Jan 22, 2009
Messages
1,224
Reaction score
466
thats the weapon slot.

it works in normal int format and is saved as an int but is used by the gameserver as a float.

i can only presume that the pw database does not support floating point numbers.

so yea the mask is the floating point number for the slot is applies to (in int form).

be sure to get it correct or u wont be able to equipt right.
 
Joined
Oct 14, 2009
Messages
5,493
Reaction score
2,300
I was just pointing that out mainly because in the original download form (prior to the modification addressed here: http://forum.ragezone.com/5832690-post16.html) there was no way to have different settings for the mask 'per item'; the "default" setting was "1"...

{and I will admit I have no clue what it's for}, but at least with the modification in the above post you can set items in the items.jsp list individually now :) ...Now if I just knew how to derive what it should be set to on an individual basis...

---------- Post added at 08:19 PM ---------- Previous post was at 08:16 PM ----------

... and Then I think it dawned on me just after I clicked 'submit' LMAO

Mask ~ and ~ Equipping ; I think I get it now since you were saying "1" was for weapon slot. I am guessing you are talking about how if you were to click and hold on an item it would highlight what slot it's supposed to equip to ; that's what it has to do with correct ? {sorry 24+ hours no sleep :\} So to define 'mask' is to define what it would equip to... Which only leaves me with one last question, what is the variable for something that cannot be equipped, "0" ???

---------- Post added at 09:50 PM ---------- Previous post was at 08:19 PM ----------

Here is part of what I have been working on the past hour. My list of what is what at the moment:

//
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ITEM MASK:
//
// 0 = Not To Be Equipped
// 1 = Weapon
// 2= Helmet
// 4 = Necklace
// 8 = Robe
// 16 = Chest Armor
// 32 = Belt
// 64 = Leg Armor
// 128 = Foot Armor
// 256 = Arm Armor
// 1536 = Ring
// 1536 = Ring
// 2048 = Ammunition
// 4096 = Flyer Mount
// 8192 = Chest Clothing/Fashion
// 16384 = Leg Clothing/Fashion
// 32768 = Foot Clothing/Fashion
// 65536 = Arm Clothing/Fashion
// 131072 = Hierogram
// 262144 = Heaven Book/Tome
// 524288 = Chat Smiley
// 1048576 = HP Charm
// 2097152 = MP Charm
//
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ITEM PROCTYPE:
//
// 32791 = SoulBound
// 55 = (? chrono key){cannot drop , cannot trade , cannot sell to npc}
// 19 = (? FB Tabs){cannot drop , cannot trade}
// 8 = (? Clothing/binding charm){}
// 1 = (? Revival Scroll){}
//
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Expire Date:
// value is equal to the unix clock time you want the item to expire
// ie...
// to get current unix time type "date +%s"
// (or... (it) is the time in seconds that have elapsed since 01-01-1970 00:00:00 UTC)
// add the amount of time you want the item to last, in seconds, to current unix time
// (ie. 7 days = 604800 seconds, so you would add 604800 to current time)
//
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
 
Last edited:
  • Like
Reactions: 419
Joined
Oct 14, 2009
Messages
5,493
Reaction score
2,300
does anyone know the format of the expire_date var ?

---------- Post added at 01:21 AM ---------- Previous post was at 01:16 AM ----------

At quick glance this is really confusing me, I set gshop a few items to expire in 7 days, 6 days, 1 day, 1 hour, and one item for 30 minutes only and here are all the expire_date variables I got:

1282195590
1282109191
1281677192
1281594393
1281592594
 
Last edited:
Black Magic Development
Loyal Member
Joined
Apr 29, 2010
Messages
2,170
Reaction score
601
does anyone know the format of the expire_date var ?

---------- Post added at 01:21 AM ---------- Previous post was at 01:16 AM ----------

At quick glance this is really confusing me, I set gshop a few items to expire in 7 days, 6 days, 1 day, 1 hour, and one item for 30 minutes only and here are all the expire_date variables I got:

1282195590
1282109191
1281677192
1281594393
1281592594

Looks like a unix time stamp to me

You can use to convert into unix time, I never used expires on items so I never really had the need to find that out
 
[B]aSH
Loyal Member
Joined
Apr 2, 2009
Messages
1,138
Reaction score
371
If your ever adding an item for your server just use iweb for the itemdata etc and get all the information there and add it to the sql db to read from, thats all i did for my automated system.
 
Joined
Oct 14, 2009
Messages
5,493
Reaction score
2,300
Looks like a unix time stamp to me

You can use to convert into unix time, I never used expires on items so I never really had the need to find that out

Thank you much! I have learned that, in short, this time is the number of seconds that have elapsed since 01/01/1970 00:00:00 UTC :lol:

Now, in order to set this variable you can get the current time in this format in your linux environment by typing "date +%s" then you would add the number of seconds until you want your item to expire... Example; if you wanted the item to expire in 7 days ~ 7 days = 604800 seconds. You would take your current time (by using "date +%s") and add 604800 to it.

Ex: my current time check reveals that right now it is "1281651560" add 604800 we get 1282256360. So if I set "1282256360" to an expire_date var field that item would expire at the exact time below (in exactly 7 days to the second):

GMT: Thu, 19 Aug 2010 22:19:20 GMT
UTC -0600(CST): Thursday, August 19, 2010 5:19:20 PM
 
Back
Top