View Single Post
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