PWI Elysium Changes

05/21/2016 18:21 ehasz#46
Quote:
Originally Posted by DurianMontong View Post
hi thx for info, but can u tell me how to find my $factionid
sry, but what is the language used?
waht i need to take to use this code and do working program?
05/21/2016 18:23 sasukezero#47
Quote:
Originally Posted by DurianMontong View Post
hi thx for info, but can u tell me how to find my $factionid
Sure, here you go:

05/21/2016 18:58 DurianMontong#48
Quote:
Originally Posted by ehasz View Post
sry, but what is the language used?
waht i need to take to use this code and do working program?
is use auto it , but i can't tell how to becouse i take code from 1 to another piece by piece becouse no basic just copy paste an learn to gather the code
05/21/2016 18:58 sasukezero#49
You can use this function for it:

05/21/2016 19:11 DurianMontong#50
Quote:
Originally Posted by sasukezero View Post
You can use this function for it:

:handsdown: thx now i can go to faction base with send packet, but more you gave more to ask :D

how to func auto get PlayerID if i change another char / multi client
05/21/2016 20:24 sasukezero#51
This is the function i made for that:


It reads out the Playername, Playerid and the pid you gotta need.
The gui you gotta have to make yourself but that's easy to do :)
05/21/2016 22:20 jasty#52
For packet stuff I use this decent packet listener tool. It's in Russian but it's not hard to figure out what does what. You can also edit packets and resend them to test things quickly.
05/22/2016 16:16 Stark77#53
Does anyone of you guys know how to interact with the Mailbox?
Like reading what item is in there?

so far i got those packets but cannot read the item ID... also the numbering seems weird.

Code:
   ;~ number of mails 
   NumberOfMessages := readOffsetChain("0x1C|0x18|0x8|0xC4|0x3DC|0x248|0x174") 
    
   ;~ open mailbox
   packet := "2500190000000C0000006A100000" . hexPlayerID . "1E40E040"
   
   ;~ open mail
   nr := 7  ;~ nr starts with 0x7 for the first mail (not sure about that)
   revhex(rev_nr,nr,2)
   packet := "2500190000000D0000006C100000" . hexPlayerID . "00E92B90" . rev_nr

   ;~ take item
   packet := "2500190000000F0000006E100000" . hexPlayerID . "0018E900" . rev_nr . "0600"

   ;~ hexPlayerID is not reversed
05/26/2016 17:07 louco89#54
Anyone know how to start and stop the autobot from pw?
I do not find any packets to that, is it client side only?
If is client side is any "easy" way to do that?
05/28/2016 06:25 DurianMontong#55
hi how to get auto func get NPC unique ID if i have npc ID
because some of dungeon reset NPC unique ID when i go again

now i use like this but after server reset it must find another NPC unique ID

Func OpenNPC()
$npcId = 2260730042 ; Mu Hoffen
startNpcDialogue($npcId)
EndFunc

Func startNpcDialogue($npcId)
local $packet, $packetSize

$packet = '2300'
$packet &= _hex($npcId)
$packetSize = 6

sendPacket($packet, $packetSize, $pid)
EndFunc

how i can auto get NPC unique ID, so i dont need always find NPC unique ID manual

i hope can use direct like something like "startNpcDialogue(40566)"
[Only registered and activated users can see links. Click Here To Register...]
05/30/2016 03:29 louco89#56
Quote:
Originally Posted by DurianMontong View Post
hi how to get auto func get NPC unique ID if i have npc ID
because some of dungeon reset NPC unique ID when i go again

now i use like this but after server reset it must find another NPC unique ID
how i can auto get NPC unique ID, so i dont need always find NPC unique ID manual

i hope can use direct like something like "startNpcDialogue(40566)"
[Only registered and activated users can see links. Click Here To Register...]
I think you can do a search for npc close to you, and with that you can search by the name of the npc or unique id. I don't know another way to do so.

Here are a post that explaining how to do that
[Only registered and activated users can see links. Click Here To Register...]
05/30/2016 09:16 DurianMontong#57
Quote:
Originally Posted by louco89 View Post
I think you can do a search for npc close to you, and with that you can search by the name of the npc or unique id. I don't know another way to do so.

Here are a post that explaining how to do that
[Only registered and activated users can see links. Click Here To Register...]
yes thanks , i use that array way to search NPC unique ID but is there any funcion that can get unique ID from array ?
05/31/2016 22:16 Kruger2001#58
can anyone share the new Skill Ids please ?

Select Target by ID (AHK):

06/01/2016 02:31 louco89#59
Quote:
Originally Posted by Kruger2001 View Post
can anyone share the new Skill Ids please ?
I don't know if is going to help anyone, but I use this code in php for create a new file with skills ids.

PHP Code:
<?php
set_time_limit
(0);
//name of the file that you want
$ini fopen("Skill_ids.ini","a");
fwrite($ini,$i."[Skills]"."\n");
//open the skillids file
$file fopen("skillstr.txt""r");
    while (!
feof($file)) {
        
$line_of_text fgets($file);
        
//old - (\d{0,5})  "(.*)"
        //new - (\d{0,5})  "([^\^].*)"
    
preg_match('/(\d{0,5})  "([^\^].*)"/',$line_of_text$matches);
//    echo $line_of_text;
//    print_r($matches);
    
$matches array_filter($matches);
    if(!empty(
$matches)){}
    
$i=trim($matches[1]);
    
$itemname trim($matches[2]);        
    if(!empty(
$itemname)){
    
fwrite($ini,$i."=".$itemname."\n");
    }
    } 
fclose($file);
fclose($ini);
?>
06/01/2016 05:14 DurianMontong#60
hi louco89 do you have function auto follow but with distance from leader i want 8 party member follow leader the formation like this

P P P
P L P
P p p

p = is party member
L = is leader

so every time leader move , 8 party member with same distance will follow leader