Jump to content

JayPee

Members
  • Posts

    633
  • Joined

  • Last visited

Everything posted by JayPee

  1. For @go delay refer to this: http://rathena.org/board/topic/56318-modify-warp-go-delay/ can you post your megaphone code?
  2. char_id is a integer i guess it should be @exist guild_id is a integer i guess it should be @GDExist I guess your insert command must be like this
  3. Can you state what are the requirements?
  4. Thanks KeyWorld It works now. I guess it doesnt allow me to use that kind of format
  5. You should post this on the client section
  6. Iam making a sort of a multi dimensional array using setd and getd. This is my script prontera,153,169,4 script Donation 123,{ set .npcname$,"Donation"; set .arrayCounter,0; //Items //For Headgears [Category][slot Number][itemID = 0 /ItemAmount = 1] setd ".@Item[0][0][0]","123"; //ItemID setd ".@Item[0][0][1]","124"; //Amount mes getd(".@Item[0][0][2]"); } when i mes mes getd(".@Item[0][0][0]"); It outputs 124 mes getd(".@Item[0][0][1]"); it outputs 124 and also mes getd(".@Item[0][0][2]"); It outputs 124 but when I entered mes getd(".@Item[1][0][0]"); This is correct it outputs nothing since this is not set Is this the limitation of setd and getd or is it a bug or my wrong usage of the syntax?
  7. Just choose RO - GRF in the ThorMaker.exe. If there is the same filename it will just overwrite it.
  8. Ah I see. Thanks, I was wondering that also since it is only reporting in map_server_txt
  9. di mo na need galawin ung configgrf-files.txt for adding maps lang ata ginagamit yan for Data.ini try mo
  10. You need to find it using a Text editor i recommend Notepad++ and find that portion in the code
  11. This is the Code for the login <?php if(!$session->isLoggedIn()){ //If the user is not log in the CP //Display the login form ?> <form action="<?php echo $this->url('account', 'login', array('return_url' => $params->get('return_url'))) ?>" method="post"> <input type="hidden" name="server" value="<?php echo htmlspecialchars($session->loginAthenaGroup->serverName) ?>"> <input type="text" placeholder="Enter Username" name="username" id="login_username"/> <input type="password" name="password" id="login_password" placeholder="Enter Password" /> <input type="submit" value="Login"/> </form> <?php } else { //If the user is loggedin the server ?> <a href="index.php?module=account&action=view">My Account</a> <a href="index.php?module=history">History</a> <a href="index.php?module=account&action=logout">Logout</a> <?php } ?>
  12. Hello, Iam making a gm trade log src but Iam having a problem in my Sql Query it always report undeclared handle but I look in the other codes It is almost the same as mine. I tried try to compile it both Debug and Release but its the same. Thanks in advance trade.h // Copyright (c) Athena Dev Teams - Licensed under GNU GPL // For more information, see LICENCE in the main folder #ifndef _TRADE_H_ #define _TRADE_H_ //#include "map.h" struct map_session_data; void trade_traderequest(struct map_session_data *sd, struct map_session_data *target_sd); void trade_tradeack(struct map_session_data *sd,int type); void trade_tradeadditem(struct map_session_data *sd,short index,short amount); void trade_tradeaddzeny(struct map_session_data *sd,int amount); void trade_tradeok(struct map_session_data *sd); void trade_tradecancel(struct map_session_data *sd); void trade_tradecommit(struct map_session_data *sd); #endif /* _TRADE_H_ */ trade.c /*========================================== * Žæˆø‹–‘ø(trade‰Ÿ‚µ) *------------------------------------------*/ void trade_tradecommit(struct map_session_data *sd) { struct map_session_data *tsd; int trade_i; int flag; struct item_data *item_data; if (!sd->state.trading || !sd->state.deal_locked) //Locked should be 1 (pressed ok) before you can press trade. return; if ((tsd = map_id2sd(sd->trade_partner)) == NULL) { trade_tradecancel(sd); return; } sd->state.deal_locked = 2; if (tsd->state.deal_locked < 2) return; //Not yet time for trading. //Now is a good time (to save on resources) to check that the trade can indeed be made and it's not exploitable. // check exploit (trade more items that you have) if (impossible_trade_check(sd)) { trade_tradecancel(sd); return; } // check exploit (trade more items that you have) if (impossible_trade_check(tsd)) { trade_tradecancel(tsd); return; } // check for full inventory (can not add traded items) if (!trade_check(sd,tsd)) { // check the both players trade_tradecancel(sd); return; } // trade is accepted and correct. for( trade_i = 0; trade_i < 10; trade_i++ ) { int n; if(pc_isGM(sd)>=60) { n = sd->deal.item[trade_i].index; item_data = itemdb_search_two(&sd->status.inventory[n].nameid); if( SQL_ERROR == Sql_Query(mmysql_handle, "INSERT INTO agony_gmtrade(accountid,itemname,amount) VALUES(%d,%s,%d)",sd->status.account_id,item_data->name,sd->deal.item[trade_i].amount)) { Sql_ShowDebug( mmysql_handle ); } } if(pc_isGM(tsd)>=60) { n = tsd->deal.item[trade_i].index; item_data = itemdb_search_two(&tsd->status.inventory[n].nameid); if( SQL_ERROR == Sql_Query(mmysql_handle, "INSERT INTO agony_gmtrade(accountid,itemname,amount) VALUES(%d,%s,%d)",tsd->status.account_id,item_data->name,tsd->deal.item[trade_i].amount)) { Sql_ShowDebug( mmysql_handle ); } } if (sd->deal.item[trade_i].amount) { n = sd->deal.item[trade_i].index; flag = pc_additem(tsd, &sd->status.inventory[n], sd->deal.item[trade_i].amount); if (flag == 0) { //Logs (T)rade [Lupus] log_pick_pc(sd, LOG_TYPE_TRADE, sd->status.inventory[n].nameid, -(sd->deal.item[trade_i].amount), &sd->status.inventory[n]); log_pick_pc(tsd, LOG_TYPE_TRADE, sd->status.inventory[n].nameid, sd->deal.item[trade_i].amount, &sd->status.inventory[n]); pc_delitem(sd, n, sd->deal.item[trade_i].amount, 1, 6); } else clif_additem(sd, n, sd->deal.item[trade_i].amount, 0); sd->deal.item[trade_i].index = 0; sd->deal.item[trade_i].amount = 0; } if (tsd->deal.item[trade_i].amount) { n = tsd->deal.item[trade_i].index; flag = pc_additem(sd, &tsd->status.inventory[n], tsd->deal.item[trade_i].amount); if (flag == 0) { //Logs (T)rade [Lupus] log_pick_pc(tsd, LOG_TYPE_TRADE, tsd->status.inventory[n].nameid, -(tsd->deal.item[trade_i].amount), &tsd->status.inventory[n]); log_pick_pc(sd, LOG_TYPE_TRADE, tsd->status.inventory[n].nameid, tsd->deal.item[trade_i].amount, &tsd->status.inventory[n]); pc_delitem(tsd, n, tsd->deal.item[trade_i].amount, 1, 6); } else clif_additem(tsd, n, tsd->deal.item[trade_i].amount, 0); tsd->deal.item[trade_i].index = 0; tsd->deal.item[trade_i].amount = 0; } } if( sd->deal.zeny || tsd->deal.zeny ) { sd->status.zeny += tsd->deal.zeny - sd->deal.zeny; tsd->status.zeny += sd->deal.zeny - tsd->deal.zeny; //Logs Zeny (T)rade [Lupus] if( sd->deal.zeny ) log_zeny(tsd, LOG_TYPE_TRADE, sd, sd->deal.zeny); if( tsd->deal.zeny ) log_zeny(sd, LOG_TYPE_TRADE, tsd, tsd->deal.zeny); sd->deal.zeny = 0; tsd->deal.zeny = 0; clif_updatestatus(sd, SP_ZENY); clif_updatestatus(tsd, SP_ZENY); } sd->state.deal_locked = 0; sd->trade_partner = 0; sd->state.trading = 0; tsd->state.deal_locked = 0; tsd->trade_partner = 0; tsd->state.trading = 0; clif_tradecompleted(sd, 0); clif_tradecompleted(tsd, 0); // save both player to avoid crash: they always have no advantage/disadvantage between the 2 players if (save_settings&1) { chrif_save(sd,0); chrif_save(tsd,0); } } Errors reported by VS2008: Error 7 error C2065: 'SQL_ERROR' : undeclared identifier d:rathena - workingsrcmaptrade.c 637 map-server_txt Error 9 error C2065: 'mmysql_handle' : undeclared identifier d:rathena - workingsrcmaptrade.c 637 map-server_txt Error 11 error C2065: 'mmysql_handle' : undeclared identifier d:rathena - workingsrcmaptrade.c 639 map-server_txt Error 14 error C2065: 'SQL_ERROR' : undeclared identifier d:rathena - workingsrcmaptrade.c 646 map-server_txt Error 15 error C2065: 'mmysql_handle' : undeclared identifier d:rathena - workingsrcmaptrade.c 646 map-server_txt Error 16 error C2065: 'mmysql_handle' : undeclared identifier d:rathena - workingsrcmaptrade.c 648 map-server_txt
  13. I really like simple designs and layout... thumbs up for you
  14. I guess you can look at the revisions to see what changes made by rAthena
  15. Harmonia.rar Here I saved it as harmonia all small letters
  16. JayPee

    This or That?

    Luigi Coz its always Mario One Piece or Naruto?
  17. JayPee

    @main command

    Try to convert it to integer Iam not sure on what I remember I just read it on C for Dummies I remember that when you parse a character value to integer it gives you its ASCII code... int myvar = int(characterVar); Well I guess you need to Iterate to the char variable to make this work ASCII table reference: http://web.cs.mun.ca...scii-table.html
  18. San mo nainstall ung logdb sa inter_athena.conf mo baka kasi sa same schema or database (ragnarok) nailagay log_db_db:log try change it to log_db_db:ragnarok
  19. its your char table elemental_id column is missing
  20. Do you mean when I have Teleport Clip in my inventory I will learn Teleport Skill? I believe its going to be SRC editting.
×
×
  • Create New...