Re: SendMail - pwAdmin Plugin
Quote:
Originally Posted by
Romulan
Can you help me for my problem plz? ^^
index.jsp
Code:
if(itemnumber > 0)
{
gri.id = Integer.parseInt(items[itemnumber][0]);
gri.guid1 = 0;
gri.guid2 = 0;
gri.mask = Integer.parseInt(items[itemnumber][3]);
gri.proctype = Integer.parseInt(items[itemnumber][4]);
gri.pos = 0;
gri.count = Integer.parseInt(items[itemnumber][5]);
gri.max_count = Integer.parseInt(items[itemnumber][6]);
gri.expire_date = 0;
gri.data = new Octets(hextoByteArray(items[itemnumber][2]));
items.jsp
Code:
<%
// item DB for send mail
// items[index][0] -> item id
// items[index][1] -> item name
// items[index][2] -> xml octets for this item
// items[index][3] -> Mask
// items[index][4] -> Proctype
// items[index][5] -> Stacked
// items[index][6] -> Max Count
String[][] items =
{
{"0", "none", "", "Mask", "Proctype", "Stacked", "Max Count"},
%>
Re: SendMail - pwAdmin Plugin
Re: SendMail - pwAdmin Plugin
Hum.... I just want to know wich tool can be used to edit java class?
Especially the classes in /WEB-INF/classes/protocol/ :ott1:
Re: SendMail - pwAdmin Plugin
i posted the decompiled class files, they dont say much.
Re: SendMail - pwAdmin Plugin
I want a tool not an already decompiled class....
Re: SendMail - pwAdmin Plugin
Re: SendMail - pwAdmin Plugin
Java Decompiler GUI - for browsing class files
Class Editor - for editing constants (i.e. strings) in a class file
Re: SendMail - pwAdmin Plugin
important to define a mask number or the player will be unable to equipt it.
Re: SendMail - pwAdmin Plugin
default mask was "1" (for this SendMail plugin anyways)
Re: SendMail - pwAdmin Plugin
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.
Re: SendMail - pwAdmin Plugin
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)
//
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
Re: SendMail - pwAdmin Plugin
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
Re: SendMail - pwAdmin Plugin
Quote:
Originally Posted by
343
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 Epoch Converter - Unix Timestamp Converter to convert into unix time, I never used expires on items so I never really had the need to find that out
Re: SendMail - pwAdmin Plugin
guid1 is also a unix timestamp.
Re: SendMail - pwAdmin Plugin
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.