Jump to content

Recommended Posts

Posted (edited)

Hello keyworld,

 

>Sorry my english is too bad, and i know that you're french. 

 

J'ai un petit souci avec le script, je n'ai rien qui s'affiche.
Alors je me pose des questions: y a t il des droits particuliers sur certains fichiers/dossiers ?
J'ai mis client et data en 777 et tout les php en 755.

 

As tu une idée ?

Merci ;)

 

EDIT:

i've found this in error log:

PHP Warning: parse_ini_file() has been disabled for security reasons in /.../core/class.Client.php on line 41
PHP Warning: Invalid argument supplied for foreach() in /.../core/class.Client.php on line 44

 

EDIT 2: if you have this problem, just delete parse_ini_file from php.ini !

 

EDIT 3: quels sont les droits nécessaires sur quels tables pour l’accès mysql ? Si je lui donne que l’accès 'select' a la base 'char', ca ne fonctionne pas :/

post-320-0-09558600-1391759676_thumb.png

Edited by none
  • 2 weeks later...
Posted

Hello ^^

 

Very nice tool, indeed ! Love it and would love to use it for my server / FluxCP, BUT it seems the scripts are not reading my *.lua files and are using internal *.php files to find the ViewID.

Example: accessoryid.lua and accname.lus are replaced by hats.php. This causes bugs like this one for ViewID 1019. In hats.php it is "Cyan_Bandaid", but in my lua's it is "bluevalk_cd".

Trying to find file "data/sprite/악세사리/여/여_Cyan_Bandaid.spr"...
File not found in data folder.
Searching in GRFs...
Loading GRF file "rochargen.grf"...
Search in GRF "rochargen.grf", fail.
Loading GRF file "rdata.grf"...
Search in GRF "rdata.grf", fail.
Loading GRF file "snow_0x200.grf"...
Search in GRF "snow_0x200.grf", fail.
Loading GRF file "paletten_0x200.grf"...
Search in GRF "paletten_0x200.grf", fail.
File not found...

A file "Cyan_Bandaid" .act or .spr does not exist in my GRFs.

My question is now how to tell that script to read *.lua files or how to convert them into hats.php ?

Best Regards

Nets ^^

 

Fixed that problem on my own. Manualy !!!

But still a proper working lua reader would be fine. ^^

  • 2 weeks later...
Posted

@Hirasu

I don't think I will do other npc scripts for the community : I am already busy with my projects and to be honest I don't have any fun to write athena scripts now, too limited and not elegant at all :(

 

About ROChargenPHP you can add custom files in db folder, if it's about hats, take a look at db/hats.php.

There is a route + controller you can set on in index.php to update files from your lua files but since it parse lua content wth regex it can generate some errors.

  • Upvote 1
Posted (edited)

@KeyWorld

 

Thanks for the information  /lv

 

EDIT:

$routes['/update/(hats|mobs|robes)'] = 'Update'; // Uncomment this line if you want to perform updates by updating lua files.

 

i uncomment this and run the update.php but nothing happens  :o

 

what i do wrong?

 

Can i add custom items manuell?

Edited by Hirasu
Posted

@KeyWorld

 

$routes['/update/(hats|mobs|robes)'] = 'Update'; // Uncomment this line if you want to perform updates by updating lua files.

 

i uncomment this and run the update.php but nothing happens  :o

 

You have to run :

/update/hats or

/update/mobs or

/update/robes

 

And of course you can add items manually :P

Posted (edited)

 

@KeyWorld

 

$routes['/update/(hats|mobs|robes)'] = 'Update'; // Uncomment this line if you want to perform updates by updating lua files.

 

i uncomment this and run the update.php but nothing happens  :o

 

You have to run :

/update/hats or

/update/mobs or

/update/robes

 

And of course you can add items manually :P

 

Thanks  /kis

EDIT:

The hats.php list is updated but in the /avatar/CHARNAME i dont see my custom headgear , my custom grf is in the data.ini , what can i do? ( Sorry for my bad english )

Cache delay = 0

 

EDIT2: FIXED my mistake was : 1082 => 'ElemEarth', and the sprite name is elemearth.spr :D ( 1082 => 'elemearth', works )

 

EDIT3:

btw the Fallen Angel Wing Robe does not appear.

 

and i have a request :

 

how to add the ROChargenPHP to the FluxCP like this :

 bbcq.png

 

And how can i display the items icons as in the picture above.

 

Hope* someone can help me, Thanks :)

Edited by Hirasu
Posted (edited)

@Hirasu:

 

I solved that by using DIV-BOXES and TABLES in HTML, CSS and a bit PHP.

 

Will upload my test-files to pastebin in some minutes ^^

 

Regards

 

Nets ^^


Here the links to pastebin:

 

Part 1: index.php http://rathena.org/board/pastebin/z1gwqy2l583z/

Part 2: functions.php http://rathena.org/board/pastebin/zvz8k9n82v7/

Part 3: array_prefix.php http://rathena.org/board/pastebin/drmzl3oetc25/

Part 4: array_links.php http://rathena.org/board/pastebin/19odvbv9ocvns/

Part 5: array_jobnames.php http://rathena.org/board/pastebin/tq0fghh1lgmi/

Part 6: test.css http://rathena.org/board/pastebin/1isljtsv6ir40/

 

You have to set up KeyWorld's script to useage of char_id. See here

 

!!! NOTE: Some jobnames (#20 - #28) are not verifyed, maybe they will not work properly.

 

Regards

 

Netsrot ^^


@KeyWorld:

 

I tried to create a controller "character_id.php" to be able to use charnames AND charids, but i have problems with index.php.

 

I inserted:

$routes['/character_id/(\d+)']               = 'Character_ID';

The debugmode tell me that the route can not be found. Do i have to add some more information somewhere ?

 

Regards

 

Nets ^^

Edited by Netsrot
Posted (edited)

@Hirasu:

 

I solved that by using DIV-BOXES and TABLES in HTML, CSS and a bit PHP.

 

Will upload my test-files to pastebin in some minutes ^^

 

Regards

 

Nets ^^

Here the links to pastebin:

 

Part 1: index.php http://rathena.org/board/pastebin/z1gwqy2l583z/

Part 2: functions.php http://rathena.org/board/pastebin/zvz8k9n82v7/

Part 3: array_prefix.php http://rathena.org/board/pastebin/drmzl3oetc25/

Part 4: array_links.php http://rathena.org/board/pastebin/19odvbv9ocvns/

Part 5: array_jobnames.php http://rathena.org/board/pastebin/tq0fghh1lgmi/

Part 6: test.css http://rathena.org/board/pastebin/1isljtsv6ir40/

 

You have to set up KeyWorld's script to useage of char_id. See here

 

!!! NOTE: Some jobnames (#20 - #28) are not verifyed, maybe they will not work properly.

 

Regards

 

Netsrot ^^

@KeyWorld:

 

I tried to create a controller "character_id.php" to be able to use charnames AND charids, but i have problems with index.php.

 

I inserted:

$routes['/character_id/(\d+)']               = 'Character_ID';

The debugmode tell me that the route can not be found. Do i have to add some more information somewhere ?

 

Regards

 

Nets ^^

Danke :)

 

wie ich sehe bist du deutscher  /ok

 

Könnte ich dich noch fragen wie ich das mit z.b signature.php verbinden kann? 

 

EDIT: Sorry habs gefunden :

<table class="charview" style="width:280px; height:150px; background: url(http://localhost/rochargen/index.php/character/<?php echo htmlspecialchars($row['char_id']); ?>) no-repeat center -63px;">
 
Danke es geht  /lv
 
Edit2: 
@Netsrot
 

$result = mysql_query("SELECT * FROM `char` WHERE `account_id` = '2000000' ORDER BY `char_id` ASC");

 

wie kann ich es machen das es so funktioniert? : www.127.0.0.1/Netsrot/ACCOUNT_ID

Edited by Hirasu
Posted

I tried to create a controller "character_id.php" to be able to use charnames AND charids, but i have problems with index.php.

 

I inserted:

$routes['/character_id/(\d+)'] = 'Character_ID';

The debugmode tell me that the route can not be found. Do i have to add some more information somewhere ?

 

Regards

 

Nets ^^

 

What did you do ?

1) Add the route in index.php (ok).

2) Duplicate controllers/character.php and rename it to character_id.php

3) Replace the class name (should be Character_ID_Controller).

4) Replace the query (WHERE char.char_id = ?)

 

And that's all.

Posted

 

I tried to create a controller "character_id.php" to be able to use charnames AND charids, but i have problems with index.php.

 

I inserted:

$routes['/character_id/(\d+)'] = 'Character_ID';

The debugmode tell me that the route can not be found. Do i have to add some more information somewhere ?

 

Regards

 

Nets ^^

 

What did you do ?

1) Add the route in index.php (ok).

2) Duplicate controllers/character.php and rename it to character_id.php

3) Replace the class name (should be Character_ID_Controller).

4) Replace the query (WHERE char.char_id = ?)

 

And that's all.

 

I missed step 3 ^^ Now its working :)

 

This script is awesome, really /no1 /no1 /no1

 

Best Regards

 

Nets ^^

  • 1 month later...
Posted (edited)

Oh, I have a quest, how make the directory folder read the grf from home/

 

 

 

An thanks, very cool !

Edited by Zell
  • 3 years later...
  • 9 months later...
  • 3 weeks later...
  • 9 months later...
Posted

Good Day Everyone,

Before I did yuse the ROchargen but now I cant seem to make it work. All I got is blank pag even when the debug mode is open and when I open the inspect tab on chrome I cant see any error.

I hope you can help me out. Thank you.

  • 7 months later...
  • 1 year later...
  • 1 month later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...