Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 01.08.2006, 11:23   #9
Firedaemon
Архивный участник
 
Join Date: Oct 2005
Posts: 267
Default

I found a few more things that needed to be changed too. Nothing major but it will cause the skilldata to not be parsed by l2server. I will leave this for you to review and find for yourself. You may PM me and ask me though if you are a frequent sharer here on PP.

Also my regex for summons is semi working. It works for some, but not others... the corrected is below.

[php:1:10b77a5678]
// i_summon
preg_match_all("/\{i_summon;(\[[a-zA-Z0-9\-\_\']{1,}\]);([0-9]{1,});(\[[a-zA-Z0-9\-\_\']{1,}\]);([0-9]{1,})\}(.*)\}\t/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_summon;".$matches[1][0].";".$matches[2][0].";".$matches[3][0].";".$matches[4][0]."}".$matches[5][0]."}\t", "{i_summon;".$this->npc_lookup($this->npc_c4pch_lookup($matches[1][0])).";".$matches[2][0]."}".$matches[5][0]."}\t"."item_consume={[".$this->item_lookup($this->item_c4pch_lookup($matches[3][0]))."];".$matches[4][0]."}\t", $line[$n]);
unset($matches);
}
[/php:1:10b77a5678]
Firedaemon is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:47.