![]() |
Any lin2error.txt? Or anything in '/err' log?
|
-- Deleted --
|
Any idea from Telnet?
|
CLog::Add -> CLog::AddV -> Log::AddV - vswprintf_s
hm - it could not make log record into console ... |
Does anybody know what is packet format for:
- change subjob ? - move character to different account ? Which data should I give to CacheD ? (just order of them :) |
$buf .= tounicode("Web1"); //who
Please explain what is TOUNICODE function? Your own? If it is your own please share this code! Also if anyone can help with PHP coding of commands CacheD... we neeeed it =) |
it's in the first example post Namenlos...
Code:
function tounicode($string) { |
Please help with adding a builder rights to a existing player account.
#3 SetBuilderCharacterPacket("ddS") The third argument is any string in unicode? Must I add '1' at the end of the packet as in the AddItem packet? |
PHP Code:
|
Gah, I can get EVERY function to work besides additem2... it isn't reporting any errors. I did the adminid thing... just no errors now. it connects to the cache and disconnects and no item is created.
|
Make sure You have working itemdata.txt in your CachedScript directory. My additem2 php code:
$cached_op = pack ( "cVVVVVVVVVV", 55, $char_id, $warehouse, $item_type, $amount, $enchant, $eroded, $bless, $ident, $wished, 1 ); $cached_op .= ansi2unicode ( "yourwebuserorwhatever" ); $ret_string = l2_cached_push ( pack ( "s", strlen ( $cached_op ) + 2 ) . $cached_op ); It works. |
What about 67 AddSkillsPacket("dSd") ?
When trying to add all skills, nothing happens. Also, no errors in CacheD. CacheD returns "1". Code:
function cached_new($buf){Code:
function set_skill_all_char($id,$char_name){ |
Quote:
|
When trying the code, no error is reported but it doesn't work. Simply to load the itemdata just put in the folder and your good to go right? I have itemname-e.txt itemdata.txt and itemcache.txt all in there, but no item is loaded with the PHP your provided. I do get recognition of it attempting in the CACHE
|
What about Char Ban?
This script can not do that. Please help! Quote:
|
Namenlos:
Your php-script invalid... Where is a function calling? -> echo (ban_char($name, $hour)); Where $char_id variable defined? -> is there must be name or char_id? -> if $name, then you must convert it to unicode tounicode($name); -> if $char_id, then you have error in function arguments... You have error in a packet data... Because you're using packet for ChangeCharNamePacket. -> you must know right packet structure (with all parameters, which sended to cached) -> function ban_char($name, $hour) -> $buf = pack("c", 39); -> $buf .= pack("i", $char_id); -> $buf .= pack("i", $name); -> $buf .= tounicode("GM1"); -> it's what you must edit... I can't help with structure, because I can't understand, which parameters used for that function... |
Quote:
Quote:
I POSTED WRONG CODE. I mean $buf = pack("c", 39); $name = tounicode($name); $buf .= pack("i", $name); $buf .= pack("i", $hour); 39 is the packet for BanChar, look at the first post. Changing name is 4th packet. |
I am sorry for my posts.
This is right code. Code:
|
For anyone reading this thread, AddItem2 doesn't work, so don't waste your time. Everything is ok, ban char check online status, ect.
Just wanted to make an update so you dont waste your time like I did. |
Quote:
Quote:
|
Quote:
PHP Code:
|
//ENG
PLZ help me, what the need packet for stopsay(BanChat) player??? //RUS Какой пакет нужен чтобы банить чат у игрока ??? |
PunishCharPacket
|
tnx
:) //RUS Большое спасибо! |
help whis pakets to set_noobless and set_hero
#106 SetNoblessPacket("ddS") #107 SetHeroPacket("ddS") not work |
| All times are GMT. The time now is 17:00. |