Jump to content

Alphoccio

Members
  • Content Count

    21
  • Joined

  • Last visited

Posts posted by Alphoccio


  1. Didn't test but should work:

     

    prontera,150,150,4	script	Fused Cards seller	60,{	mes "Wanna get a fused card?";	mes "For that, I need:";	mes "1x Red Potion";    // Item ID: 501	mes "1x Blue Potion";   // Item ID: 505	mes "1x Yellow Potion"; // Item ID: 503	mes "1x White Potion";  // Item ID: 504	next;	if (select("Yes:No")==2){ // No		mes "Get out of here!";		close;	}	if (countitem(501) && countitem(503) && countitem(504) && countitem(505)){		delitem 501,1;		delitem 503,1;		delitem 504,1;		delitem 505,1;		if (rand(100) >= 90) {			getitem YOUR_CARD_ID,1;			mes "Success! There you go!";		}		else {			mes "LOL FAIL!";		}	}	else {		mes "You're missing items!";	}	close;}

     

     

     

     

    Greetings Sir jaBote,

     

    I just wanna say Thank you for your reply.. very kind of yours.. tested and it work.  :)


  2. It's not possible unless the new card item is added on the item DB. In case it is, the code should be like this (change YOUR_CARD_ID to your actual card ID or you'll experience an error ingame:

     

    prontera,150,150,4	script	Fused Cards seller	60,{	mes "Wanna get a fused card?";	mes "For that, I need:";	mes "1x Red Potion";    // Item ID: 501	mes "1x Blue Potion";   // Item ID: 505	mes "1x Yellow Potion"; // Item ID: 503	mes "1x White Potion";  // Item ID: 504	next;	if (select("Yes:No")==2){ // No		mes "Get out of here!";		close;	}	if (countitem(501) && countitem(503) && countitem(504) && countitem(505)){		delitem 501,1;		delitem 503,1;		delitem 504,1;		delitem 505,1;		getitem YOUR_CARD_ID,1;		mes "There you go!";	}	else {		mes "You're missing items!";	}	close;}

     

    Hi Sir jaBote,

     

    just a follow up question.. how about the CODE of his below, how to do it?

     

    -- Success Rate --

    90% Fail and 10% success.


  3. Good day people,

     

    I know this is so Off topic here in Hercules.. but I'm in need of help.

     

    I'm just having a problem with this PC and I tried to google, asked & posted on fb (groups, news feed etc.) for solution.

     

    I reformatted my Laptop via USB flash drive and it was Successful but with the PC.. after I install Windows 7 OS it restarts to have its Final Setup Configuration now here comes Windows 7 loading screen but after that it should be the Set-up Config. but instead I have this "Blue Screen Error".

     

    kindly please see attached file.

     

    post-8615-0-18308400-1425369251_thumb.png

     

     

    I did these things.

    - BIOS Restored to Default Set-up

    - Removed / Cleaned and re-attached PC RAM's

    - Hard Disks Detected

    - Tried to "Safe Mode" but it says it Cannot Continue its Installation process if it's in Safe Mode.

    - Tried to "Start Windows Normally" but got the same error.

     

    Hoping you guys can share your thoughts, websites etc.? because maybe you have encountered this before?

    So much Thanks!  :meow:


  4. Not currently and I doubt it could be easily implemented. All mobs on a map server exist only in RAM and are destroyed when the server is closed. I guess it's not a good idea to try saving tens of thousands of mobs every time the server closes.

    For the server, main difference for spawning whether a player or a monster is that the player gets loaded from permanent memory (SQL engine) and the mobs are spawned by scripts.

    oh now I know.. thank you so much sir. :-)


  5. Hi there.. I'm just curious.

     

    Is it Possible that even when I close the char/login/map-server's windows batch files.. for example the damaged received or status freeze/stun/etc. of Monsters especially MVP's will be saved?

     

    like when left your char in a certain map and close everything.. but still you'll find your char where you left it when you load everything again.

     

     

    btw thank you for checking out this topic.

     


  6. Good day all..

     

    just a quick question..  these lines of inter-server.conf "use_sql_mob_db & use_sql_mob_skill_db"  what does it do?

     

    // == SQL item, mob, mob skill databases// =====================================// Note: the following databases may get out of date at times, or not be// thoroughly tested (if at all, since they're auto-generated). As such it is// not advisable to rely on them other than for informative reasons (Control// Panels, websites, etc.)// Unless you know what you're doing, please consider using their txt version.// Note2: It is perfectly legit (and recommended) to use txt databases in// Hercules, while still loading the SQL tables we provide to be used// exclusively by your Control Panel or Website.// Use SQL for item_db? (not recommended)use_sql_item_db: no// Use SQL for mob_db? (not recommended)use_sql_mob_db: no                                /* If yes? what does it do? */								 // Use SQL for mob_skill_db? (not recommended)use_sql_mob_skill_db: no                         /* if yes? what does it do? */						import: conf/import/inter_conf.txt

     


  7. this is the whole code..

     

    skill->firewall_unit_pos = pos;for (i=0;i<8;i++) {  if (i&1) {   skill->unit_layout[pos].count = 5;   if (i&0x2) {    int dx[] = {-1,-1, 0, 0, 1};    int dy[] = { 1, 0, 0,-1,-1};    memcpy(skill->unit_layout[pos].dx,dx,sizeof(dx));    memcpy(skill->unit_layout[pos].dy,dy,sizeof(dy));   } else {    int dx[] = { 1, 1 ,0, 0,-1};    int dy[] = { 1, 0, 0,-1,-1};    memcpy(skill->unit_layout[pos].dx,dx,sizeof(dx));    memcpy(skill->unit_layout[pos].dy,dy,sizeof(dy));   }  } else {   skill->unit_layout[pos].count = 3;   if (i%4==0) {    int dx[] = {-1, 0, 1};    int dy[] = { 0, 0, 0};    memcpy(skill->unit_layout[pos].dx,dx,sizeof(dx));    memcpy(skill->unit_layout[pos].dy,dy,sizeof(dy));   } else {    int dx[] = { 0, 0, 0};    int dy[] = {-1, 0, 1};    memcpy(skill->unit_layout[pos].dx,dx,sizeof(dx));    memcpy(skill->unit_layout[pos].dy,dy,sizeof(dy));   }  }  pos++;} 

    ok those coordinates are patterns..

    and as I said before you need to plot it,... into a Cartesian plane you can see the pattern..

    for example

    2eb9x7b.png

     

    I hope after seeing this you will get the idea...

    Word of the day: A good programmer is a good mathematician... :D

     

     

    :meow:

     

    Good day malufett,

     

    After many hours &  a night of mind processing while sleeping.. haha  :heh:

    I just wanna say Thank you so much! so kind of yours. 

    I got it working now.. though I'm still trying to understand the Structure of the program and how the codes Flow.. I want to learn more of it. 

    well, though I'm not so good in Arrays.. we're in Java 2 Object Oriented and we tackled basic Arrays and now it made me realize its importance.

    for example what if I want it to be in Circle shape...? and so on...  :rolleyes:

    oh I just hope this wouldn't be the last.. again thank you for your assistance.

     

    Keep it up and have a great day to you.  :D


  8.  

     

    I've studied Java some Web PL. but not so C++. :sry:   but I'm planning to learn it.

    nah...all programming language are the same..as long as you understand how to do 'if else' you can survive as a programmer..

     

    please can you edit the codes below? cause I might do it the wrong way.

    nah..I don't want...if you want to learn...you must experience to fail..so do trial and error..anyway here is a hint..

    skill->unit_layout[pos].count = 5; // number of points    if (i&0x2) {   // here are x points and y points having this plot it and you can see something      int dx[] = {-1,-1, 0, 0, 1};       int dy[] = { 1, 0, 0,-1,-1};      memcpy(skill->unit_layout[pos].dx,dx,sizeof(dx)); // just copying of array dx to skill->unit_layout      memcpy(skill->unit_layout[pos].dy,dy,sizeof(dy)); // just copying of array dy to skill->unit_layout

    :meow:

     

     

     

    @malufett oh I admit it.. I can't figure it out.. what do you mean " just add another xy point..." ?

     

    I did these changes and that...  kindly see..

    skill->firewall_unit_pos = pos;	for (i=0;i<9;i++) {		if (i&1) {			skill->unit_layout[pos].count = 8;						// "AE_NOTE-Default: 5 "			if (i&0x2) {				int dx[] = {-1,-1, 0, 0, 0, 0, 0, 1};				int dy[] = { 1, 0, 0, 0, 0, 0,-1,-1};				memcpy(skill->unit_layout[pos].dx,dx,sizeof(dx));				memcpy(skill->unit_layout[pos].dy,dy,sizeof(dy));			} else {				int dx[] = { 1, 1 ,0, 0, 0, 0, 0,-1};				int dy[] = { 1, 0, 0, 0, 0, 0,-1,-1};				memcpy(skill->unit_layout[pos].dx,dx,sizeof(dx));				memcpy(skill->unit_layout[pos].dy,dy,sizeof(dy));			}

    And it's a must to Re-compiled the server every time I make changes right???  :p_conf:  but sadly nothing happens... it's still the same.

    I have no idea on how & what are those {-1,-1, 0, 0, 1 }; values stands for?

     

    btw, thank you so much for checking out this topic.   :gawi:


  9. @skill.c under 'void skill_init_unit_layout (void)'

    then find 'skill->firewall_unit_pos' and below it you can see the layout..just add another xy point...

     

    :meow:

     

     

    Hi there malufett,

     

    I tried to understand what you want me to do.. but I think I'm not yet there with my programming skills doing the basics.. I've studied Java some Web PL. but not so C++.   :sry:    but I'm planning to learn it. 

     

    please can you edit the codes below? cause I might do it the wrong way.

    Thank you so much for your time.  :meow:

    // firewall and icewall have 8 layouts (direction-dependent)	skill->firewall_unit_pos = pos;	for (i=0;i<8;i++) {		if (i&1) {			skill->unit_layout[pos].count = 5;			if (i&0x2) {				int dx[] = {-1,-1, 0, 0, 1};				int dy[] = { 1, 0, 0,-1,-1};				memcpy(skill->unit_layout[pos].dx,dx,sizeof(dx));				memcpy(skill->unit_layout[pos].dy,dy,sizeof(dy));			} else {				int dx[] = { 1, 1 ,0, 0,-1};				int dy[] = { 1, 0, 0,-1,-1};				memcpy(skill->unit_layout[pos].dx,dx,sizeof(dx));				memcpy(skill->unit_layout[pos].dy,dy,sizeof(dy));			}		} else {			skill->unit_layout[pos].count = 3;			if (i%4==0) {				int dx[] = {-1, 0, 1};				int dy[] = { 0, 0, 0};				memcpy(skill->unit_layout[pos].dx,dx,sizeof(dx));				memcpy(skill->unit_layout[pos].dy,dy,sizeof(dy));			} else {				int dx[] = { 0, 0, 0};				int dy[] = {-1, 0, 1};				memcpy(skill->unit_layout[pos].dx,dx,sizeof(dx));				memcpy(skill->unit_layout[pos].dy,dy,sizeof(dy));			}		}		pos++;

  10. Hello there..  :)

     

    I find that RO has implement too many Skills but some of it is getting less it's importance in game.

    so I just want to make some boost of some skills.

    one of it is how do I widen the Skill Fire Wall?

     

    Let say from default 3 x 2 Cells to 6 x 2 Cells?

    I've read the wiki for quite some time now regarding Skills modifications..

    and I believe its in Skill.c but I don't want to risk.

     

    Hoping for your assistance.   :meow:

     


  11.  

    // Global SQL settings// overridden by local settings when the hostname is defined there// (currently only the login-server reads/obeys these settings)sql.db_hostname: Your IPsql.db_port: 3306sql.db_username: Workbench Usernamesql.db_password: Workbench Passwordsql.db_database: Database "Main.sql" Namesql.codepage:// MySQL Character SQL serverchar_server_ip: Your IPchar_server_port: 3306char_server_id: Workbench Usernamechar_server_pw: Workbench Passwordchar_server_db: Database "Main.sql" Name// MySQL Map SQL Servermap_server_ip: Your IPmap_server_port: 3306map_server_id: Workbench Usernamemap_server_pw: Workbench Passwordmap_server_db: Database "Main.sql" Name// MySQL Log SQL Databaselog_db_ip: Your IPlog_db_port: 3306log_db_id: Workbench Usernamelog_db_pw: Workbench Passwordlog_db_db: Database "Logs.sql" Namelog_codepage:log_login_db: loginlog

    check your inter-server.conf and make sure you import your main.sql and logs.sql

     

    Good evening here.. Hello there Naori,

     

    Finally the problem is solved.. thank you very much for the inputs, time and effort that you have shared.  :lol:

    By the way.. what I did is I re-check all those 3 CONF FILES.. specially the password.

     

    Then I search for the MySQL Workbench password because I don't remember a thing of setting up a password of it.

    So I dig deeper about the Configuration of MySQL Workbench.. and found it under "Users and Privileges" there I re-set-up a password.  :ic:

     

    Anyway Naori I've read that after this I need some ( "data folders, hercules.exe, Edit clientinfo.xml as needed.. etc. etc." )  :p_conf:

     

    What I have so far are Latest KRO and Hercules Files.

    Hope you can give me a hand and point me to the right Links.

     

    again Thank you Naori...  :thx:


  12. you compile on debug mode change debug mode on release then compile again

     

    Good day Naori,

     

    I'm glad you message.. I followed your Instruction.. and I think I'm so near in solving the problem.

    maybe I'm having a problem in MySQL Workbench now.. I'm not so sure regarding about this "root, root password" thingy..  :huh:

     

    Command Prompt says:

    : Access denied for user 'root'@'localhost' <using password: YES>

    etc. . .

     

     

    below is my Latest Screenshot. please see attached file..

     

    post-8615-0-23331700-1423357762_thumb.png

     

     

    and MySQL Workbench Latest Screenshot.

    I did some Step 1 and 2 regarding Workbench "root password" configuration but the Outcome is the same.  :mellow:

     

    post-8615-0-16944700-1423360654_thumb.png

     

     

    please help people.   :p_conf:


  13. is it a fresh copy from https://github.com/HerculesWS/Hercules?

     

    try to remove the 4 plug-in and then right click the Solution 'Hercules-10' then build.

     

    @Cannabis

     

    Ok Sir I did it.. but same problem occurs..  :wacko:

    anyway we have Home Wireless Router but this PC is the only connected to it via LAN Cable.. 192.168.0.1 probably its default address.

    is it going to be a problem in the CONF FILES configuration?

     

    and yes it's a fresh copy... maybe I'll try to re-download and back to procedure number one... if it cannot be solve.  :lol:


  14. Good day All,

     

    First, thanks for checking out this topic. it means a lot to me.  :)

    Anyways.. I've been planning to put up my own server and I think now is the right time to acquire knowledge in building it.

     

    To begin with I followed this guide of Sir @Patskie http://herc.ws/board/topic/968-guide-how-to-setup-hercules/

    it seems everything is okay.. then I got this problem.. everything is Highlighted in RED for convenience purpose.

     

    I guess I mess up in Patskie's instruction #20.

     

    -> Visual Studio 2010 C++ compilation is shown also below.
     
    PROBLEM:
    - ( login-server.exe, map-server.exe, char-server.exe was not found. Make sure, that you have compiled . . . )
     
     

    post-8615-0-20869800-1423193234_thumb.png

     

     

    Hope you can help me please.

    Thank you so much!

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.