Jump to content

JayPee

Members
  • Posts

    633
  • Joined

  • Last visited

Everything posted by JayPee

  1. pede mo bang ipost ung Config and Main Ini mo and file structure nung Web folder(the patcher one) mo?
  2. try using other thor files baka may problem sa thor files mo. Try mo itong inupload kong thor files na ginagamit ko din ThorPatcher.rar
  3. bat meron single quote dito file_url=http:'//astro.bluesky-vpshosting.info/patch/data/' ang alam ko dapat ganito yan file_url=http://astro.bluesky-vpshosting.info/patch/data/ and please use code bb code
  4. JayPee

    This or That?

    Depoque (I dont know what it means) Apple or Microsoft?
  5. if 3ceam yan @mount din ung ginagamit ko to remove the mount
  6. Like this set @howmanynumbers,20;//This the range of making a random number setarray @numbers[0],rand(0,@howmanynumbers); set @i,1; //This is just a counter while(@i<@howmanynumbers) { set @hasmatch,0;//Indicator if the number has not matched setarray @numbers[@i],rand(0,@howmanynumbers); for(set @j,0;@j<getarraysize(@numbers);set @j,@j+1) { if(@numbers[@i]==@numbers[@j]) { set @j,getarraysize(@numbers); //So the loop will end set @hasmatch,1; //It found a match so set the @hasmatch to 1 } } //If no matched found go to the next array index else dont increment the counter if(@hasmatch==0) set @i,@i+1; }
  7. I just noticed that setarray only supports single dimensional array... Is there a plan on improving the setarray or like making it support a multi-dimensional array. It will be a great help since sometimes I got confused making a trader npc where i need to make a amount, points and item array variable and making them sure that they are in the same key/index.
  8. for(set @i,25;@i<=(1000000);set @i,@i+1) { announce @i,bc_all; } XD 25
  9. Is this what your'e looking for? Link 1: http://www.eathena.ws/board/index.php?showtopic=272101&hl= Link 2: http://www.eathena.ws/board/index.php?showtopic=263448
  10. I tried to add it to castle_db.txt but still i got the same error.
  11. Iam receving this error in my map server gvg_morocc is my Guild Vs. Guild map thank you in Advance
  12. JayPee

    Php Math

    try to put your form tag outside the while loop. the loop will generate multiple opening form. And i guess the last loop will be the only valid form tag <form method="POST"> <form method="POST"> <form method="POST"> <form method="POST"> . . . </form>
  13. JayPee

    Php Math

    Try this but i havent tested it yet <?php $connect = mysql_connect("localhost,root,root") or die(mysql_error()); $select_db = mysql_select_db("item_db",$connect); $query_items = mysql_query("SELECT * FROM tbl_items") or die(mysql_error()); /* Assuming that this the table format: item_id item_name item_price */ ?> <html> <head> <title>PHP Do the calculation</title> </head> <body> <form action="index.php" method="GET"> <?php while($fetch_items = mysql_fetch_array($query_items)){ ?> <input type="checbox" name="item-<?php echo $fetch_items['item_id']; ?>" id="item-<?php echo $fetch_items['item_id']; ?>" value="name="<?php echo $fetch_items['item_id']; ?>"/><?php echo $fetch_items['item_name']; ?><input type="text" id="amount-<?php echo $fetch_items['item_id']; ?>" name="amount-<?php echo $fetch_items['item_id']; ?>" value="0"/> <br/> <?php } ?> Budget/Client Money: <input type="text" name="clientbudget" id="clientbudget" /> <input type="submit" value="Submit" /> <input type="reset" value="Reset" /> </form> <?php if(!empty($_GET)) { if(!empty($_GET['clientbudget'])) { $get_total_expenses = 0; $change; $budget = $_GET['clientbudget']; while($fetch_items = mysql_fetch_array($query_items)){ if(isset($_GET['item-'.$fetch_items['item_id']])) { $get_total_expenses += ($fetch_items['item_price']*$fetch_items['amount-'.$fetch_items['item_id']]); } } if($get_total_expenses > $budget) { echo "Insufficient funds."; } else { $change = $budget - $get_total_expenses; echo "Total amount of what did you bought: ".$get_total_expenses; echo "Total Change: ".$change; echo "Total Money: ".$budget; } } else echo "You have no budget."; } ?> </body> </html>
  14. Name: JayPee Mateo Nickname: JayPee Mateo Role: Member Age: 21 Location: Philippines Biography: Been in eAthena for more than 1 year. Started playing Official RO (pRO) i guess its 2004 or 2005 and quit at year of 2007 and started playing Private Servers(XileRO). Hobbies: I like to watch/read(manga) Anime but never like cosplayed it. I like studying or knowing new things. I like web development a lot and learning other programming styles. Occupation: Currently a On-The-Job-Trainee as PHP Programmer at DTSI Inc.(Diversified Technology Solutions International, Inc.) and also a student at University of the East Manila(going to graduate this sem). Favorite Quote: "Theres no way a mere, handsome, SEXY, merchant like me could use something like Banki!." -Urahara Kisuke (Bleach)
  15. maybe you accidentally removed a javascript functions like this which can be found at the bottom of the index.php load_menu(); LINK_ajax('motd.php', 'main_div'); LINK_ajax('login.php', 'login_div'); login_hide(2); server_status(); This loads the login and motd.php LINK_ajax('motd.php', 'main_div'); LINK_ajax('login.php', 'login_div'); I think this is the syntax of that function LINK_ajax('your-php-file-to-load.php', 'the-ID-of-the-html-element/tag'); or can you post your index.php?
  16. I came up with this code, is this correct?: trade.c char output[200]; void trade_traderequest(struct map_session_data *sd, struct map_session_data *target_sd) int level; int targetLevel; level = pc_isGM(sd); targetLevel = pc_isGM(target_sd); if((level>=60) && (targetLevel<=20)) { sprintf(output, msg_txt(904), sd->status.name, target_sd->status.name); clif_broadcast(&sd->bl, output, strlen(output) + 1, 0, ALL_CLIENT); } } msg_athena.conf 904: %s request a trade to %s
  17. I noob in source editting but i just want to ask how to send a message to all online characters in their message box example is: I request a trade... It will display a message to all online chars that "User A request a trade on User B". I think clif_displaymessage(sd->fd,target_sd->status.name) cant do that. I found this clif_GlobalMessage Thanks in advance.
  18. I already tried that but I end up not be able to attack the Emperium even iam in the other guild
×
×
  • Create New...