Jump to content

c e d i e

Members
  • Posts

    59
  • Joined

  • Last visited

Everything posted by c e d i e

  1. What I mean is how to make it visible sir? Oh, so only GM can talk to it? In it's current settings. Is this the right way to pm it? Receivers tab: npc:VIP | 'message' - script VIP -1,{ //********************************************************************* // VIP System for eAthena servers Version 3.0 //********************************************************************* // It allows you to boost experience and drop rate for players who donate // for a specified amount of days. // It makes use of account's GM Levels to specify the account type, // by default values are these: // - Account Level 0 = Non VIP Account // - Account Level 1 = VIP Silver Account // - Account Level 2 = VIP Gold Account // - Account Level 3 = VIP Platinum Account // all of them, of course, customizable . // ¡Therefore, you can also set =atcommands= for every account level in // [yourserver]/conf/atcommand_athena.conf ! Isn't that great?! // In other words, VIP players can have access to more @commands than // normal users if you want. This will add more value to the service. // // Add, List, Modify and Remove VIP accounts via whisper to this NPC. // Manage VIP accounts in-game! Just whisper any text to the npc "vip" // to access the VIP management menu. // // This script requires some database modifications for it to work, // check them at the original post where I posted this script. // URI: // // Created by: Victor H. Olvera (VicThor) // If you like this, please donate to paypal: [email protected] // I'd really like to make more scripts like this, so help if you can! // // If you want any special modification or adaptation of this script, // please! feel free to e-mail me at [email protected] I'm $ure I can // provide you with something according to your need$ // Modify by java@rathenaorg or [email protected] ====> compatible for both servers //¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ //**************** VIP SYSTEM CONFIGURATION ************************* set $VIPs_SilverAccLevel,1; // Account Level assigned for VIP Silver * set $VIPs_GoldAccLevel,2; // Account Level assigned for VIP Gold * set $VIPs_PlatinumAccLevel,3; // Account Level assigned for VIP Platinum * set $VIPs_SilverExpRate,50; // VIP Silver Exp Boost in % ( 1 = 1% ) * set $VIPs_GoldExpRate,100; // VIP Gold Exp Boost in % ( 1 = 1% ) * set $VIPs_PlatinumExpRate,150; // VIP Platinum Exp Boost in % ( 1 = 1% ) * set $VIPs_SilverItemRate,10; // VIP Silver Item Drop Boost in % ( 1 = 1% ) * set $VIPs_GoldItemRate,20; // VIP Gold Item Drop Boost in % ( 1 = 1% ) * set $VIPs_PlatinumItemRate,30; // VIP Platinum Item Drop Boost in % ( 1 = 1%)* set $VIPs_AdminGmLevel,99; // Define GM Level enabled to add, list and * // remove VIP entries. Any GM with access le- * // vel equal or higher than this will be able * // to manage VIP Accounts. * // ******************************************************************** // // Actions and checks when player logs in about his/her account type status. OnPCLoginEvent: // Obtain account data set .@getAccountType$,query_sql("SELECT `account_type` FROM login WHERE `account_id` = "+getcharid(3)+";",.@accountType$); // First of all deACTIVEte all VIP benefits sc_end sc_expboost; sc_end sc_itemboost; // If account type is PLATINUM if (.@accountType$ == "PLATINUM") { // Dialy Bonus WOIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII ================================================================ if(#dailytimer < gettimetick(2)) { announce "Here's your prize, you'll get another one after 24 hours.",bc_self,0x0099FF; getitem 21001,1; //remove <id> and add your own ids for item set #dailytimer,gettimetick(2) + 86400; //24 hours. } set .@getVipStatus,query_sql("SELECT `status` FROM `vip_platinum` WHERE `account_id` = "+getcharid(3)+";",.@vipStatus$); // Get account type status set .@getExpirationDate$,query_sql("SELECT DATE_FORMAT(`end_date`, '%Y %m %d') FROM vip_platinum WHERE `account_id` = "+getcharid(3)+";",.@expirationDate$); // Get expiration date if (gettimestr("%Y %m %d",21) >= .@expirationDate$) // If current date is higher than expiration date... { // terminateVip function on line 430, removes player VIP entry from database table "vip_platinum" callsub terminateVip,"vip_platinum",getcharid(3); goto L_displayInfo; } // If expiration date has not arrived yet, ACTIVEte VIP benefits. else { sc_start sc_expboost,1000*60*60*24,$VIPs_PlatinumExpRate; sc_start sc_itemboost,1000*60*60*24,$VIPs_PlatinumItemRate; goto L_displayInfo; } } if (.@accountType$ == "GOLD") { // Dialy Bonus WOIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII ================================================================ if(#dailytimer < gettimetick(2)) { announce "Here's your prize, you'll get another one after 24 hours.",bc_self,0x0099FF; getitem 21001,1; //remove <id> and add your own ids for item set #dailytimer,gettimetick(2) + 86400; //24 hours. } set .@getVipStatus,query_sql("SELECT `status` FROM `vip_gold` WHERE `account_id` = "+getcharid(3)+";",.@vipStatus$); // Obtener el estado de la cuenta set .@getExpirationDate$,query_sql("SELECT DATE_FORMAT(`end_date`, '%Y %m %d') FROM vip_gold WHERE `account_id` = "+getcharid(3)+";",.@expirationDate$); // Obtener Fecha de expiración if (gettimestr("%Y %m %d",21) >= .@expirationDate$) // Si la fecha de HOY es mayor que la fecha de expiración... { // terminateVip function on line 430, removes player VIP entry from database table "vip_gold" callsub terminateVip,"vip_gold",getcharid(3); goto L_displayInfo; } // If expiration date has not arrived yet, ACTIVEte VIP benefits. else { sc_start sc_expboost,1000*60*60*24,$VIPs_GoldExpRate; sc_start sc_itemboost,1000*60*60*24,$VIPs_GoldItemRate; goto L_displayInfo; } } if (.@accountType$ == "SILVER") { // Dialy Bonus WOIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII ================================================================ if(#dailytimer < gettimetick(2)) { announce "Here's your prize, you'll get another one after 24 hours.",bc_self,0x0099FF; getitem 21001,1; //remove <id> and add your own ids for item set #dailytimer,gettimetick(2) + 86400; //24 hours. } set .@getVipStatus,query_sql("SELECT `status` FROM `vip_silver` WHERE `account_id` = "+getcharid(3)+";",.@vipStatus$); // Obtener el estado de la cuenta set .@getExpirationDate$,query_sql("SELECT DATE_FORMAT(`end_date`, '%Y %m %d') FROM vip_silver WHERE `account_id` = "+getcharid(3)+";",.@expirationDate$); // Obtener Fecha de expiración if (gettimestr("%Y %m %d",21) >= .@expirationDate$) // Si la fecha de HOY es mayor que la fecha de expiración... { // terminateVip function on line 430, removes player VIP entry from database table "vip_silver" callsub terminateVip,"vip_silver",getcharid(3); goto L_displayInfo; } // If expiration date has not arrived yet, ACTIVEte VIP benefits. else { sc_start sc_expboost,1000*60*60*24,$VIPs_SilverExpRate; sc_start sc_itemboost,1000*60*60*24,$VIPs_SilverItemRate; goto L_displayInfo; } } // If account type is normal, just display account type information. if (.@accountType$ == "NORMAL") { set .@getVipStatus,query_sql("SELECT `status` FROM `vip_silver` WHERE `account_id` = "+getcharid(3)+";",.@vipStatus$); // Obtener el estado de la cuenta set .@getExpirationDate$,query_sql("SELECT DATE_FORMAT(`end_date`, '%Y %M %d') FROM vip_silver WHERE `account_id` = "+getcharid(3)+";",.@expirationDate$); // Obtener Fecha de expiración goto L_displayInfo; } // Displays account type status on login on chat window. L_displayInfo: dispbottom "----------------------------------------------------------------------"; dispbottom "Account type: "+.@accountType$; dispbottom "Status: "+.@vipStatus$; dispbottom "Expiration date: "+.@expirationDate$; dispbottom "----------------------------------------------------------------------"; end; OnWhisperGlobal: if ( getgmlevel() < 99 ) end; On_gm: set .@npcName$,"[VIP System]"; mes .@npcName$; mes "Welcome, "+strcharinfo(0)+"!"; mes "¿What can I do for you today?"; next; switch(select("VIP Silver Menu:VIP Gold Menu:VIP Platinum Menu:Quit")) { case 1: // VIP Silver next; mes .@npcName$; mes "[VIP SILVER]"; switch(select("Add/Extend Account:Delete Account:List Accounts:Back")) { case 1: // Add/Extend mes "Type the Account Name"; mes "you wish to add."; input .@accountName$; next; mes .@npcName$; mes "[VIP SILVER]"; mes "Type the number of days you"; mes "wish to add to the account's VIP"; mes "status."; next; mes .@npcName$; mes "[VIP SILVER]"; input .@silverDays; // Fetch account's ID using the name of the account previously typed. set .@getAccountId,query_sql("SELECT `account_id`FROM login WHERE `userid` = '"+.@accountName$+"';",.@accountId); mes "Identifying account: "+.@accountName$+"."; sleep2 rand(100,2000); // Looks like it's working on something if (!.@accountId) // Let's verify if the entered account exists or GM is just high... { mes "ERROR: Couldn't find account."; mes "Verify if you dind't make a typo."; close; } else { // Now lets check if the account is already 'vip_silver' set .@getSilverAccount,query_sql("SELECT `account_id` FROM vip_silver WHERE `account_id` = "+.@accountId+";",.@silverAccountId); if (.@silverAccountId == .@accountId) // If the account is already VIP we will update instead of inserting a new entry. { mes "Account ID: "+.@silverAccountId+"."; sleep2 rand(100,850); query_sql("UPDATE vip_silver SET end_date = DATE_ADD(end_date, INTERVAL "+.@silverDays+" DAY) WHERE account_id = "+.@silverAccountId+";"); query_sql("UPDATE vip_silver SET `status` = 'ACTIVE' WHERE account_id = "+.@silverAccountId+";"); query_sql("UPDATE login SET `account_type` = 'SILVER' WHERE account_id = "+.@silverAccountId+";"); mes "Account "+.@silverAccountId+" updated"; mes "successfuly!"; close; } else // If the account is not already a VIP Silver one, add a new entry. { mes "Account ID: "+.@accountId+"."; sleep2 rand(100,850); query_sql("INSERT INTO vip_silver (`account_id`,`account_name`,`start_date`,`end_date`,`status`) VALUES ("+.@accountId+",'"+.@accountName$+"','"+gettimestr("%Y-%m-%d",21)+"','"+gettimestr("%Y-%m-%d",21)+"','ACTIVE');"); sleep2 100; query_sql("UPDATE vip_silver SET end_date = DATE_ADD(start_date, INTERVAL "+.@silverDays+" DAY) WHERE account_id = "+.@accountId+";"); query_sql("UPDATE `login` SET `group_id` = 1 WHERE `account_id` = "+.@accountId+";"); query_sql("UPDATE login SET `account_type` = 'SILVER' WHERE account_id = "+.@accountId+";"); mes "Account "+.@accountId+" added"; mes "successfuly!"; close; } } close; case 2: // Delete set .@getSilverList_1$,query_sql("SELECT account_name FROM vip_silver LIMIT 0,127;", .@silverList_1$); // query_sql can only display the first 128 lines of a table. This is so sad if ( getarraysize(.@silverList_1$) == 0 ) { mes "There are currently no VIP"; mes "Silver accounts."; close; } else { mes "Select the account you wish "; mes "to remove from VIP system."; set .@j$, "1. "+ .@silverList_1$; for (set .@i,1; .@i < getarraysize(.@silverList_1$); set .@i, .@i + 1 ) set .@j$, .@j$ +":"+ (.@i+1) +". "+ .@silverList_1$[.@i]; set .@j$, .@j$ +":Cancel"; next; mes .@npcName$; mes "[VIP SILVER]"; set .@menu, select(.@j$) -1; if ( .@menu == getarraysize(.@silverList_1$) ) { next; goto On_gm; } mes "Are you sure you want to remove the account "; mes .@silverList_1$[.@menu] +" ?"; if ( select( "Yes:No" ) == 2 ) { next; goto On_gm; } query_sql ("UPDATE `login` SET `group_id` = 0 WHERE `userid` = '"+.@silverList_1$[.@menu]+"';"); query_sql ("DELETE FROM vip_silver WHERE account_name = '"+.@silverList_1$[.@menu]+"';"); query_sql("ALTER TABLE vip_silver AUTO_INCREMENT = 1;"); query_sql("UPDATE `login` SET `account_type` = 'NORMAL' WHERE `userid` = '"+.@silverList_1$[.@menu]+"';"); mes "VIP Silver account successfuly deleted!."; close; } close; case 3: // List mes "VIP Silver accounts list:"; // List up to 127 vip accounts set .@getSilverList_1$,query_sql("SELECT account_name FROM vip_silver LIMIT 0, 127;", .@silverList_1$); for (set .@i,0; .@i < getarraysize(.@silverList_1$); set .@i, .@i + 1) mes (.@i+1)+". "+.@silverList_1$[.@i]; // You may want to add a next; command and a new LIMIT 128,255 sentence, in case you need to store and display more than 128 VIP accounts. close; case 4: // Back goto On_gm; } case 2: // Gold Menu next; mes .@npcName$; mes "[VIP GOLD]"; switch(select("Add/Extend Account:Delete Account:List Accounts:Back")) { case 1: // Add mes "Type the Account Name"; mes "you wish to add."; input .@accountName$; next; mes .@npcName$; mes "[VIP GOLD]"; mes "Enter the amount of days you"; mes "want to add to this account"; mes "status."; next; mes .@npcName$; mes "[VIP GOLD]"; input .@goldDays; // Fetch account's ID using the name of the account previously typed. set .@getAccountId,query_sql("SELECT `account_id`FROM login WHERE `userid` = '"+.@accountName$+"';",.@accountId); mes "Identificando Cuenta: "+.@accountName$+"."; sleep2 rand(100,2000); if (!.@accountId) // Checks if account exists. { mes "ERROR: Couldn't find account."; mes "Verify the account you typed"; close; } else { // Verify if account is already 'vip_gold' set .@getGoldAccount,query_sql("SELECT `account_id` FROM vip_gold WHERE `account_id` = "+.@accountId+";",.@goldAccountId); if (.@goldAccountId == .@accountId) // If it exists, update, not insert { mes "Account ID: "+.@accountId+"."; sleep2 rand(100,850); query_sql("UPDATE vip_gold SET end_date = DATE_ADD(end_date, INTERVAL "+.@goldDays+" DAY) WHERE account_id = "+.@goldAccountId+";"); query_sql("UPDATE vip_gold SET `status` = 'ACTIVE' WHERE account_id = "+.@goldAccountId+";"); query_sql("UPDATE login SET `account_type` = 'GOLD' WHERE account_id = "+.@goldAccountId+";"); mes "Account "+.@goldAccountId+" updated"; mes "successfuly!"; close; } else // If this account is not already 'vip_gold', add an entry. { mes "Account ID: "+.@accountId+"."; sleep2 rand(100,850); query_sql("INSERT INTO vip_gold (`account_id`,`account_name`,`start_date`,`end_date`,`status`) VALUES ("+.@accountId+",'"+.@accountName$+"','"+gettimestr("%Y-%m-%d",21)+"','"+gettimestr("%Y-%m-%d",21)+"','ACTIVE');"); sleep2 100; query_sql("UPDATE vip_gold SET end_date = DATE_ADD(start_date, INTERVAL "+.@goldDays+" DAY) WHERE account_id = "+.@accountId+";"); query_sql("UPDATE `login` SET `group_id` = 2 WHERE `account_id` = "+.@accountId+";"); query_sql("UPDATE login SET `account_type` = 'GOLD' WHERE account_id = "+.@accountId+";"); mes "Account "+.@accountId+" updated"; mes "successfuly!"; close; } } close; case 2: // Delete set .@getGoldList_1$,query_sql("SELECT account_name FROM vip_gold LIMIT 0,127;", .@goldList_1$); if ( getarraysize(.@goldList_1$) == 0 ) { mes "There are currently no VIP"; mes "accounts."; close; } else { mes "Select the account you wish "; mes "to remove from VIP system Gold."; set .@j$, "1. "+ .@goldList_1$; for (set .@i,1; .@i < getarraysize(.@goldList_1$); set .@i, .@i + 1 ) set .@j$, .@j$ +":"+ (.@i+1) +". "+ .@goldList_1$[.@i]; set .@j$, .@j$ +":Cancel"; next; mes .@npcName$; mes "[VIP GOLD]"; set .@menu, select(.@j$) -1; if ( .@menu == getarraysize(.@goldList_1$) ) { next; goto On_gm; } mes "Are you sure you want to remove the account "; mes .@goldList_1$[.@menu] +" ?"; if ( select( "Yes:No" ) == 2 ) { next; goto On_gm; } query_sql ("UPDATE `login` SET `group_id` = 0 WHERE `userid` = '"+.@goldList_1$[.@menu]+"';"); query_sql ("DELETE FROM vip_gold WHERE account_name = '"+.@goldList_1$[.@menu]+"';"); query_sql("ALTER TABLE vip_gold AUTO_INCREMENT = 1;"); query_sql("UPDATE `login` SET `account_type` = 'NORMAL' WHERE `userid` = '"+.@goldList_1$[.@menu]+"';"); mes "VIP Gold account successfuly deleted!."; close; } close; case 3: // List mes "List Accounts VIP Gold:"; // List only 128 accounts due to eAthena's limitations very sad indeed. set .@getgoldList_1$,query_sql("SELECT account_name FROM vip_gold LIMIT 0,127;", .@goldList_1$); for (set .@i,0; .@i < getarraysize(.@goldList_1$); set .@i, .@i + 1) mes (.@i+1)+". "+.@goldList_1$[.@i]; close; case 4: // Back goto On_gm; } case 3: // Menu VIP Platinum next; mes .@npcName$; mes "[VIP PLATINUM]"; switch(select("Add/Extend Account:Delete Account:List Accounts:Back")) { case 1: // Add mes "Type the Account Name"; mes "you wish to add."; input .@accountName$; next; mes .@npcName$; mes "[VIP PLATINUM]"; mes "Enter the amount of days you"; mes "will add to this account's"; mes "status."; next; mes .@npcName$; mes "[VIP PLATINUM]"; input .@platinumDays; // Fetch account's ID using the name of the account previously typed. set .@getAccountId,query_sql("SELECT `account_id`FROM login WHERE `userid` = '"+.@accountName$+"';",.@accountId); mes "Identificando Cuenta: "+.@accountName$+"."; sleep2 rand(100,2000); if (!.@accountId) // Checks if account exists { mes "ERROR: Couldn't find this account"; mes "Enter the account correctly"; close; } else { // Is this account a 'vip_platinum' already? set .@getPlatinumAccount,query_sql("SELECT `account_id` FROM vip_platinum WHERE `account_id` = "+.@accountId+";",.@platinumAccountId); if (.@platinumAccountId == .@accountId) // If this account is 'vip_platinum' update instead of insterting a new entry. { mes "Account ID: "+.@accountId+"."; sleep2 rand(100,850); query_sql("UPDATE vip_platinum SET end_date = DATE_ADD(end_date, INTERVAL "+.@platinumDays+" DAY) WHERE account_id = "+.@platinumAccountId+";"); query_sql("UPDATE vip_platinum SET `status` = 'ACTIVE' WHERE account_id = "+.@platinumAccountId+";"); query_sql("UPDATE login SET `account_type` = 'PLATINUM' WHERE account_id = "+.@platinumAccountId+";"); mes "Account "+.@platinumAccountId+" updated"; mes "successfuly!"; close; } else // If it's not VIP already, insert a new entry { mes "Account ID: "+.@accountId+"."; sleep2 rand(100,850); query_sql("INSERT INTO vip_platinum (`account_id`,`account_name`,`start_date`,`end_date`,`status`) VALUES ("+.@accountId+",'"+.@accountName$+"','"+gettimestr("%Y-%m-%d",21)+"','"+gettimestr("%Y-%m-%d",21)+"','ACTIVE');"); sleep2 100; query_sql("UPDATE vip_platinum SET end_date = DATE_ADD(start_date, INTERVAL "+.@platinumDays+" DAY) WHERE account_id = "+.@accountId+";"); query_sql("UPDATE `login` SET `group_id` = 3 WHERE `account_id` = "+.@accountId+";"); query_sql("UPDATE login SET `account_type` = 'PLATINUM' WHERE account_id = "+.@accountId+";"); mes "Account "+.@accountId+" updated"; mes "successfuly!"; close; } } close; case 2: // Delete set .@getPlatinumList_1$,query_sql("SELECT account_name FROM vip_platinum LIMIT 0,127;", .@platinumList_1$); if ( getarraysize(.@platinumList_1$) == 0 ) { mes "There are currently no VIP"; mes "Platinum accounts."; close; } else { mes "Select the account you wish "; mes "to remove from VIP system Platinum."; set .@j$, "1. "+ .@platinumList_1$; for (set .@i,1; .@i < getarraysize(.@platinumList_1$); set .@i, .@i + 1 ) set .@j$, .@j$ +":"+ (.@i+1) +". "+ .@platinumList_1$[.@i]; set .@j$, .@j$ +":Cancel"; next; mes .@npcName$; mes "[VIP PLATINUM]"; set .@menu, select(.@j$) -1; if ( .@menu == getarraysize(.@platinumList_1$) ) { next; goto On_gm; } mes "Are you sure you want to remove the account "; mes .@platinumList_1$[.@menu] +" ?"; if ( select( "Yes:No" ) == 2 ) { next; goto On_gm; } query_sql ("UPDATE `login` SET `group_id` = 0 WHERE `userid` = '"+.@platinumList_1$[.@menu]+"';"); query_sql ("DELETE FROM vip_platinum WHERE account_name = '"+.@platinumList_1$[.@menu]+"';"); query_sql("ALTER TABLE vip_platinum AUTO_INCREMENT = 1;"); query_sql("UPDATE `login` SET `account_type` = 'NORMAL' WHERE `userid` = '"+.@platinumList_1$[.@menu]+"';"); mes "VIP Platinum account successfuly deleted!."; close; } close; case 3: // List mes "List Accounts VIP Platinum:"; set .@getplatinumList_1$,query_sql("SELECT account_name FROM vip_platinum LIMIT 0,127;", .@platinumList_1$); for (set .@i,0; .@i < getarraysize(.@platinumList_1$); set .@i, .@i + 1) mes (.@i+1)+". "+.@platinumList_1$[.@i]; close; case 4: // Back goto On_gm; } case 4: // Quit close; } terminateVip: // This function removes any VIP status from the specified account set .@dbTableName$,getarg(0); // Table name set .@accountId,getarg(1); // Account ID query_sql("UPDATE `login` SET `group_id` = 0 WHERE account_id = "+.@accountId+";"); // Set account level to 0 query_sql("DELETE FROM "+.@dbTableName$+" WHERE account_id = '"+.@accountId+"';"); // Delete VIP table entry query_sql("ALTER TABLE "+.@dbTableName$+" AUTO_INCREMENT = 1;"); // Tries to reset id count query_sql("UPDATE `login` SET `account_type` = 'NORMAL' WHERE `account_id` = "+.@accountId+";"); // Set account type to "NORMAL" in 'login' table goto L_displayInfo; } Can you check the script sir Emistry. I can't still even pm the npc :\ I already did the sql.
  2. Please answer Rebel's post. How can I make the npc visible? Where do I add the mapname,x,y,face script VIP system NPC#,{ ??? Please answer BUMP PLEASE
  3. I change all the 1@room into guild_vs1, do you think it will work? and I remove all the message at the top of the script which is also written here http://pastebin.com/raw.php?i=bRgdJgwt. Won't it make any error? or it really should be out of the script..
  4. I have two folders in MySQL. The ragnarok and logs. Where should I place the http://pastebin.com/raw.php?i=bRgdJgwt?
  5. @leinadz, is your MEGA GRF PROTECTOR available now sir?
  6. May I ask how to diff the client so I can enable multiple grf?
  7. I'm so stupid. Sorry, I placed ragnarok in log_db_db while my logs are placed in a database named log. LOL thank you so much Emistry! You're the best (y)
  8. It has the right information sir. Still having that debug/sql. :3
  9. Hello! As the title said, I always got lagged whenever a monster is killed or everytime a mob drops an item. Check out the picture I placed at the bottom. Everytime a mob is killed, that message floods the server monitor and I feel, that error cause the lag. How can I fix this. Anybody knows? HELP ME PLEASE Thank you!
  10. If you like to disable items in the specific map you would be using find this at db and set restriction. "item_noequip" For your other suggestion: 1. There will be 8 levels, or more. 2. If the event start, (for example), the top portal will be the first level. I suggest, only the top portal will be open, if the first level monsters are all killed, the second portal will open, which will be at the top right portal, then when the second level (second portal) monsters are all killed, the third portal will be open. and so on and so fort. 3. Once all the levels are finish, the prizes will be placed at the center of the map. Set condition after killing monsters to specific round new portal will be enabled(mobcount will definitely work). Thank you for the guide in disabling the berry. In my suggestion, can you help me with that step by step? Cause I'm not really good at scripting
  11. Hi Ms. Annie! First, I would like to say thank you so much for your cool event! This was my favorite event when I start to play the private server RO, year 2008? Haha XD Thank you so much! Hmm.. I would like to ask, how can I disable healing items like berry/seed in this event? Also suggestion, I think it's better if the devil square will be like this. (I just don't know how to edit ) 1. There will be 8 levels, or more. 2. If the event start, (for example), the top portal will be the first level. I suggest, only the top portal will be open, if the first level monsters are all killed, the second portal will open, which will be at the top right portal, then when the second level (second portal) monsters are all killed, the third portal will be open. and so on and so fort. 3. Once all the levels are finish, the prizes will be placed at the center of the map. I hope you can edit the script for this option. If you're not busy ~ THANK YOU IN ADVANCE!
  12. Oh, I hope someone can share this for free HELP HELP
  13. BUMP FOR THIS CARD Oh, ok I already post this in src. Thank you!
  14. Thanks sir, I'm so mad. I never think about skill_cast_db. :3 THANKS!
  15. How can I lower/lessen the duration of GX new poisons such as Leech end. and is there a way to lessen the damage? Please I need this Help! Thanks in advance! case SC_LEECHESEND: val4 = tick / 1000; tick_time = 1000; // [GodLesZ] tick time break; I don't know if this is the code that I should change. But I feel that this is what I have to. But I really can't understand what tick means. :3 or maybe this one :3 case SC_LEECHESEND: if( --(sce->val4) >= 0 ) { int damage = status->max_hp/100; // {Target VIT x (New Poison Research Skill Level - 3)} + (Target HP/100) damage += status->vit * (sce->val1 - 3); unit_skillcastcancel(bl,2); map_freeblock_lock(); status_damage(bl, bl, damage, 0, clif_damage(bl,bl,tick,status_get_amotion(bl),status_get_dmotion(bl)+500,damage,1,0,0), 1); if( sc->data[type] ) { sc_timer_next(1000 + tick, status_change_timer, bl->id, data ); } map_freeblock_unlock(); return 0; } break; BUMP PLEASE HELP
  16. A script that will make GTB fail. I mean, sorry for my english. -______- Here's an example.. I call the card GRB. Me(Warlock wearing GRB) Kid(Any job wearing GTB) Boy(Warlock without GRB) BOY cast storm gust on KID. (It doesn't do any damage at all. Nothing happen, not even 1 damage.) ME cast storm gust on KID. (It affects the KID. But only by chance, like 75% of the cast hit him.) So what I am requesting is: GTB card that raise it's effect to 100% anti magic. GRB card that nulify GTB effect at chance of 75%. Attached Thumbnails or can someone teach me to edit the src and add -> bonus bIgnoreGTB? Please help me. THANKS! BUMP! Help please
  17. A script that will make GTB fail. I mean, sorry for my english. -______- Here's an example.. I call the card GRB. Me(Warlock wearing GRB) Kid(Any job wearing GTB) Boy(Warlock without GRB) BOY cast storm gust on KID. (It doesn't do any damage at all. Nothing happen, not even 1 damage.) ME cast storm gust on KID. (It affects the KID. But only by chance, like 75% of the cast hit him.) So what I am requesting is: GTB card that raise it's effect to 100% anti magic. GRB card that nulify GTB effect at chance of 75%. Attached Thumbnails
  18. c e d i e

    Stats

    Thanks for your help! IT WORKS NOW <3
  19. c e d i e

    Stats

    I don't know if I should post this here. But I hope someone can help me about this. I was using a Pre Renewal, but since I want to use Renewal. I switch to renewal. But when I test about stats. this shows me. This photo shows a stat point that is really lack of stat points. That player is lvl 250. I already try editing my statpoint.db to higher amount, still nothing change. I hope someone can help me with this. THANKS! Anyone can help me here please
  20. Set dew_dun02 as nowarp mapflag. Try this one : prontera,150,150,0 script Mining Room 100,{ set .@npc$, "[ " + strnpcinfo(1) + " ]"; mes .@npc$; mes "Go to mining room requires you to have Mine Hat on your head and 10x Old Pick. So would you like to go?"; next; if ( select("Yes:No") - 1 ) { mes .@npc$; mes "Come back when you are ready"; close; } if ( countitem( 7318 ) < 10 || getequipid( EQI_HEAD_TOP ) != 5031 ) { mes .@npc$; mes "You do not follow my requirements"; close; } mes .@npc$; mes "Bye bye!"; close2; delitem 7318, 10; warp "dew_dun02",0,0; end; } - script Count -1,{ OnNPCKillEvent: if ( strcharinfo(3) != "dew_dun02") end; if ( Kills >= 20 ) { dispbottom "You have already killed 20 mobs"; warp "prontera",150,150; set Kills, 0; } else set Kills, Kills + 1; end; } Wow! You did it right sir! Thank you so much! (y)
  21. Hello! I would like to ask something about duplicating the NPC. Is it possible to duplicate this NPC with different items inside. Here is the original(Use in Quest NPC): //===== rAthena Script ======================================= //= Euphy's Quest Shop //===== By: ================================================== //= Euphy //===== Current Version: ===================================== //= 1.6b //===== Compatible With: ===================================== //= rAthena SVN r16862+ //===== Description: ========================================= //= A dynamic quest shop based on Lunar's, with easier config. //= Includes support for multiple shops & cashpoints. //= Item Preview script by ToastOfDoom. //===== Additional Comments: ================================= //= 1.0 Initial script. //= 1.2 Added category support. //= 1.3 More options and fixes. //= 1.4 Added debug settings. //= 1.5 Replaced categories with shop IDs. //= 1.6 Added support for purchasing stackables. //= 1.6a Added support for previewing costumes and robes. //= 1.6b Added 'disable_items' command. //============================================================ // Shop NPCs -- supplying no argument displays entire menu. // callfunc "qshop"{,<shop ID>{,<shop ID>{,...}}}; //============================================================ cel_in01,58,195,3 script Quest Shop#1 715,{ callfunc "qshop"; } // Script Core //============================================================ - script quest_shop -1,{ function Add; function Chk; function Slot; function A_An; OnInit: freeloop(1); // ----------------------------------------------------------- // Basic shop settings. // ----------------------------------------------------------- set .Announce,1; // Announce quest completion? (1: yes / 0: no) set .ShowSlot,1; // Show item slots? (2: all equipment / 1: if slots > 0 / 0: never) set .ShowID,0; // Show item IDs? (1: yes / 0: no) set .ShowZeny,0; // Show Zeny cost, if any? (1: yes / 0: no) set .MaxStack,100; // Max number of quest items purchased at one time. // ----------------------------------------------------------- // Points variable -- optional quest requirement. // setarray .Points$[0],"<variable name>","<display name>"; // ----------------------------------------------------------- setarray .Points$[0],"#CASHPOINTS","Cash Points"; // ----------------------------------------------------------- // Shop IDs -- to add shops, copy dummy data at bottom of file. // setarray .Shops$[1],"<Shop 1>","<Shop 2>"{,...}; // ----------------------------------------------------------- setarray .Shops$[1],"Headgears","Armors","Weapons","Accessory"; // ----------------------------------------------------------- // Quest items -- do NOT use a reward item more than once! // Add(<shop ID>,<reward ID>,<reward amount>, // <Zeny cost>,<point cost>, // <required item ID>,<required item amount>{,...}); // ----------------------------------------------------------- Add(1,5022,1,0,0,7086,1,969,10,999,40,1003,50,984,2); Add(2,30132,1,0,0,7230,100,7510,20,2345,1,2347,1,2349,1,2351,1); Add(3,30200,1,0,0,1237,1,6090,20,7230,5); Add(4,30120,1,1,0,7230,50,2601,1); // ----------------------------------------------------------- freeloop(0); set .menu$,""; for(set .@i,1; .@i<=getarraysize(.Shops$); set .@i,.@i+1) { set .menu$, .menu$+.Shops$[.@i]+":"; npcshopdelitem "qshop"+.@i,909; } end; OnMenu: set .@size, getarraysize(@i); if (!.@size) set .@i, select(.menu$); else if (.@size == 1) set .@i, @i[0]; else { for(set .@j,0; .@j<.@size; set .@j,.@j+1) set .@menu$, .@menu$+.Shops$[@i[.@j]]+":"; set .@i, @i[select(.@menu$)-1]; } deletearray @i[0],getarraysize(@i); if (.Shops$[.@i] == "") { message strcharinfo(0),"An error has occurred."; end; } dispbottom "Select one item at a time."; callshop "qshop"+.@i,1; npcshopattach "qshop"+.@i; end; OnBuyItem: // .@q[] : RewardID, BoughtAmt, RewardAmt, BaseAmt, ReqZeny, ReqPts, { ReqItem, ReqAmt, ... } setarray .@q[0],@bought_nameid[0],((@bought_quantity[0] > .MaxStack)?.MaxStack:@bought_quantity[0]); copyarray .@q[3],getd(".q_"+.@q[0]+"[0]"),getarraysize(getd(".q_"+.@q[0])); set .@q[2],.@q[1]*.@q[3]; if (!.@q[2] || .@q[2] > 30000) { message strcharinfo(0),"You can't purchase that many "+getitemname(.@q[0])+"."; end; } mes "[Quest Shop]"; mes "Reward: ^000000"+((.@q[2] > 1)?.@q[2]+"x ":"")+Slot(.@q[0])+"^000000"; mes "Requirements:"; disable_items; if (.@q[4]) mes " > "+Chk(Zeny,.@q[4]*.@q[1])+(.@q[4]*.@q[1])+" Zeny^000000"; if (.@q[5]) mes " > "+Chk(getd(.Points$[0]),.@q[5]*.@q[1])+(.@q[5]*.@q[1])+" "+.Points$[1]+" ("+getd(.Points$[0])+"/"+(.@q[5]*.@q[1])+")^000000"; if (.@q[6]) for(set .@i,6; .@i<getarraysize(.@q); set .@i,.@i+2) mes " > "+Chk(countitem(.@q[.@i]),.@q[.@i+1]*.@q[1])+((.ShowID)?"{"+.@q[.@i]+"} ":"")+Slot(.@q[.@i])+" ("+countitem(.@q[.@i])+"/"+(.@q[.@i+1]*.@q[1])+")^000000"; next; setarray @qe[1], getiteminfo(.@q[0],5), getiteminfo(.@q[0],11); if (@qe[2] > 0 && ((@qe[1] & 1) || (@qe[1] & 256) || (@qe[1] & 512) || (@qe[1] & 1024) || (@qe[1] & 2048) || (@qe[1] & 4096) || (@qe[1] & 4) || (@qe[1] & 8192))) set .@preview,1; addtimer 1000, strnpcinfo(0)+"::OnEnd"; while(1) { switch(select(" ~ Purchase ^000000"+getitemname(.@q[0])+"^000000:"+((.@preview && !@qe[7])?" ~ Preview...":"")+": ~ ^000000Cancel^000000")) { case 1: if (@qe[0]) { mes "[Quest Shop]"; mes "You're missing one or more quest requirements."; close; } if (!checkweight(.@q[0],.@q[2])) { mes "[Quest Shop]"; mes "^000000You need "+(((.@q[2]*getiteminfo(.@q[0],6))+Weight-MaxWeight)/10)+" additional weight capacity to complete this trade.^000000"; close; } if (.@q[4]) set Zeny, Zeny-(.@q[4]*.@q[1]); if (.@q[5]) setd .Points$[0], getd(.Points$[0])-(.@q[5]*.@q[1]); if (.@q[6]) for(set .@i,6; .@i<getarraysize(.@q); set .@i,.@i+2) delitem .@q[.@i],.@q[.@i+1]*.@q[1]; getitem .@q[0],.@q[2]; if (.Announce) announce strcharinfo(0)+" has created "+((.@q[2] > 1)?.@q[2]+"x "+getitemname(.@q[0]):A_An(getitemname(.@q[0])))+"!",0; specialeffect2 EF_FLOWERLEAF; close; case 2: setarray @qe[3], getlook(LOOK_HEAD_BOTTOM), getlook(LOOK_HEAD_TOP), getlook(LOOK_HEAD_MID), getlook(LOOK_ROBE), 1; if ((@qe[1] & 1) || (@qe[1] & 4096)) changelook LOOK_HEAD_BOTTOM, @qe[2]; else if ((@qe[1] & 256) || (@qe[1] & 1024)) changelook LOOK_HEAD_TOP, @qe[2]; else if ((@qe[1] & 512) || (@qe[1] & 2048)) changelook LOOK_HEAD_MID, @qe[2]; else if ((@qe[1] & 4) || (@qe[1] & 8192)) changelook LOOK_ROBE, @qe[2]; break; case 3: close; } } OnEnd: if (@qe[7]) { changelook LOOK_HEAD_BOTTOM, @qe[3]; changelook LOOK_HEAD_TOP, @qe[4]; changelook LOOK_HEAD_MID, @qe[5]; changelook LOOK_ROBE, @qe[6]; } deletearray @qe[0],8; end; function Add { if (getitemname(getarg(1)) == "null") { debugmes "Quest reward #"+getarg(1)+" invalid (skipped)."; return; } setarray .@j[0],getarg(2),getarg(3),getarg(4); for(set .@i,5; .@i<getargcount(); set .@i,.@i+2) { if (getitemname(getarg(.@i)) == "null") { debugmes "Quest requirement #"+getarg(.@i)+" invalid (skipped)."; return; } else setarray .@j[.@i-2],getarg(.@i),getarg(.@i+1); } copyarray getd(".q_"+getarg(1)+"[0]"),.@j[0],getarraysize(.@j); npcshopadditem "qshop"+getarg(0),getarg(1),((.ShowZeny)?getarg(3):0); return; } function Chk { if (getarg(0) < getarg(1)) { set @qe[0],1; return "^000000"; } else return "^000000"; } function Slot { set .@s$,getitemname(getarg(0)); switch(.ShowSlot) { case 1: if (!getitemslots(getarg(0))) return .@s$; case 2: if (getiteminfo(getarg(0),2) == 4 || getiteminfo(getarg(0),2) == 5) return .@s$+" ["+getitemslots(getarg(0))+"]"; default: return .@s$; } } function A_An { setarray .@A$[0],"a","e","i","o","u"; set .@B$, "_"+getarg(0); for(set .@i,0; .@i<5; set .@i,.@i+1) if (compare(.@B$,"_"+.@A$[.@i])) return "an "+getarg(0); return "a "+getarg(0); } } function script qshop { deletearray @i[0],getarraysize(@i); for(set .@i,0; .@i<getargcount(); set .@i,.@i+1) set @i[.@i],getarg(.@i); doevent "quest_shop::OnMenu"; end; } // Dummy shop data -- copy as needed. //============================================================ - shop qshop1 -1,909:-1 - shop qshop2 -1,909:-1 - shop qshop3 -1,909:-1 - shop qshop4 -1,909:-1 - shop qshop5 -1,909:-1 Here's the duplicate NPC I tried but doesn't work (Donate NPC): Quote //===== rAthena Script ======================================= //===== Cedie ================================================ //= Euphy's Quest Shop //===== By: ================================================== //= Euphy //===== Current Version: ===================================== //= 1.6b //===== Compatible With: ===================================== //= rAthena SVN r16862+ //===== Description: ========================================= //= A dynamic quest shop based on Lunar's, with easier config. //= Includes support for multiple shops & cashpoints. //= Item Preview script by ToastOfDoom. //===== Additional Comments: ================================= //= 1.0 Initial script. //= 1.2 Added category support. //= 1.3 More options and fixes. //= 1.4 Added debug settings. //= 1.5 Replaced categories with shop IDs. //= 1.6 Added support for purchasing stackables. //= 1.6a Added support for previewing costumes and robes. //= 1.6b Added 'disable_items' command. //============================================================ // Shop NPCs -- supplying no argument displays entire menu. // callfunc "qshop"{,<shop ID>{,<shop ID>{,...}}}; //============================================================ cel_in01,174,194,4 script Donate Shop#2 505,{ callfunc "qshop"; } // Script Core //============================================================ - script quest_shop -1,{ function Add; function Chk; function Slot; function A_An; OnInit: freeloop(1); // ----------------------------------------------------------- // Basic shop settings. // ----------------------------------------------------------- set .Announce,1; // Announce quest completion? (1: yes / 0: no) set .ShowSlot,1; // Show item slots? (2: all equipment / 1: if slots > 0 / 0: never) set .ShowID,0; // Show item IDs? (1: yes / 0: no) set .ShowZeny,0; // Show Zeny cost, if any? (1: yes / 0: no) set .MaxStack,100; // Max number of quest items purchased at one time. // ----------------------------------------------------------- // Points variable -- optional quest requirement. // setarray .Points$[0],"<variable name>","<display name>"; // ----------------------------------------------------------- setarray .Points$[0],"#CASHPOINTS","Cash Points"; // ----------------------------------------------------------- // Shop IDs -- to add shops, copy dummy data at bottom of file. // setarray .Shops$[1],"<Shop 1>","<Shop 2>"{,...}; // ----------------------------------------------------------- setarray .Shops$[1],"Headgears","Armors","Weapons","Other","Accessory"; // ----------------------------------------------------------- // Quest items -- do NOT use a reward item more than once! // Add(<shop ID>,<reward ID>,<reward amount>, // <Zeny cost>,<point cost>, // <required item ID>,<required item amount>{,...}); // ----------------------------------------------------------- Add(1,30007,1,850,0,7179,850); Add(2,5022,1,0,0,7086,1,969,10,999,40,1003,50,984,2); Add(3,30200,1,0,0,1237,1,6090,20,7230,5); Add(4,531,1,3,0,512,1,713,1); Add(5,30120,1,1,0,7230,50,2601,1); // ----------------------------------------------------------- freeloop(0); set .menu$,""; for(set .@i,1; .@i<=getarraysize(.Shops$); set .@i,.@i+1) { set .menu$, .menu$+.Shops$[.@i]+":"; npcshopdelitem "qshop"+.@i,909; } end; OnMenu: set .@size, getarraysize(@i); if (!.@size) set .@i, select(.menu$); else if (.@size == 1) set .@i, @i[0]; else { for(set .@j,0; .@j<.@size; set .@j,.@j+1) set .@menu$, .@menu$+.Shops$[@i[.@j]]+":"; set .@i, @i[select(.@menu$)-1]; } deletearray @i[0],getarraysize(@i); if (.Shops$[.@i] == "") { message strcharinfo(0),"An error has occurred."; end; } dispbottom "Select one item at a time."; callshop "qshop"+.@i,1; npcshopattach "qshop"+.@i; end; OnBuyItem: // .@q[] : RewardID, BoughtAmt, RewardAmt, BaseAmt, ReqZeny, ReqPts, { ReqItem, ReqAmt, ... } setarray .@q[0],@bought_nameid[0],((@bought_quantity[0] > .MaxStack)?.MaxStack:@bought_quantity[0]); copyarray .@q[3],getd(".q_"+.@q[0]+"[0]"),getarraysize(getd(".q_"+.@q[0])); set .@q[2],.@q[1]*.@q[3]; if (!.@q[2] || .@q[2] > 30000) { message strcharinfo(0),"You can't purchase that many "+getitemname(.@q[0])+"."; end; } mes "[Quest Shop]"; mes "Reward: ^000000"+((.@q[2] > 1)?.@q[2]+"x ":"")+Slot(.@q[0])+"^000000"; mes "Requirements:"; disable_items; if (.@q[4]) mes " > "+Chk(Zeny,.@q[4]*.@q[1])+(.@q[4]*.@q[1])+" Zeny^000000"; if (.@q[5]) mes " > "+Chk(getd(.Points$[0]),.@q[5]*.@q[1])+(.@q[5]*.@q[1])+" "+.Points$[1]+" ("+getd(.Points$[0])+"/"+(.@q[5]*.@q[1])+")^000000"; if (.@q[6]) for(set .@i,6; .@i<getarraysize(.@q); set .@i,.@i+2) mes " > "+Chk(countitem(.@q[.@i]),.@q[.@i+1]*.@q[1])+((.ShowID)?"{"+.@q[.@i]+"} ":"")+Slot(.@q[.@i])+" ("+countitem(.@q[.@i])+"/"+(.@q[.@i+1]*.@q[1])+")^000000"; next; setarray @qe[1], getiteminfo(.@q[0],5), getiteminfo(.@q[0],11); if (@qe[2] > 0 && ((@qe[1] & 1) || (@qe[1] & 256) || (@qe[1] & 512) || (@qe[1] & 1024) || (@qe[1] & 2048) || (@qe[1] & 4096) || (@qe[1] & 4) || (@qe[1] & 8192))) set .@preview,1; addtimer 1000, strnpcinfo(0)+"::OnEnd"; while(1) { switch(select(" ~ Purchase ^000000"+getitemname(.@q[0])+"^000000:"+((.@preview && !@qe[7])?" ~ Preview...":"")+": ~ ^000000Cancel^000000")) { case 1: if (@qe[0]) { mes "[Quest Shop]"; mes "You're missing one or more quest requirements."; close; } if (!checkweight(.@q[0],.@q[2])) { mes "[Quest Shop]"; mes "^000000You need "+(((.@q[2]*getiteminfo(.@q[0],6))+Weight-MaxWeight)/10)+" additional weight capacity to complete this trade.^000000"; close; } if (.@q[4]) set Zeny, Zeny-(.@q[4]*.@q[1]); if (.@q[5]) setd .Points$[0], getd(.Points$[0])-(.@q[5]*.@q[1]); if (.@q[6]) for(set .@i,6; .@i<getarraysize(.@q); set .@i,.@i+2) delitem .@q[.@i],.@q[.@i+1]*.@q[1]; getitem .@q[0],.@q[2]; if (.Announce) announce strcharinfo(0)+" has created "+((.@q[2] > 1)?.@q[2]+"x "+getitemname(.@q[0]):A_An(getitemname(.@q[0])))+"!",0; specialeffect2 EF_FLOWERLEAF; close; case 2: setarray @qe[3], getlook(LOOK_HEAD_BOTTOM), getlook(LOOK_HEAD_TOP), getlook(LOOK_HEAD_MID), getlook(LOOK_ROBE), 1; if ((@qe[1] & 1) || (@qe[1] & 4096)) changelook LOOK_HEAD_BOTTOM, @qe[2]; else if ((@qe[1] & 256) || (@qe[1] & 1024)) changelook LOOK_HEAD_TOP, @qe[2]; else if ((@qe[1] & 512) || (@qe[1] & 2048)) changelook LOOK_HEAD_MID, @qe[2]; else if ((@qe[1] & 4) || (@qe[1] & 8192)) changelook LOOK_ROBE, @qe[2]; break; case 3: close; } } OnEnd: if (@qe[7]) { changelook LOOK_HEAD_BOTTOM, @qe[3]; changelook LOOK_HEAD_TOP, @qe[4]; changelook LOOK_HEAD_MID, @qe[5]; changelook LOOK_ROBE, @qe[6]; } deletearray @qe[0],8; end; function Add { if (getitemname(getarg(1)) == "null") { debugmes "Quest reward #"+getarg(1)+" invalid (skipped)."; return; } setarray .@j[0],getarg(2),getarg(3),getarg(4); for(set .@i,5; .@i<getargcount(); set .@i,.@i+2) { if (getitemname(getarg(.@i)) == "null") { debugmes "Quest requirement #"+getarg(.@i)+" invalid (skipped)."; return; } else setarray .@j[.@i-2],getarg(.@i),getarg(.@i+1); } copyarray getd(".q_"+getarg(1)+"[0]"),.@j[0],getarraysize(.@j); npcshopadditem "qshop"+getarg(0),getarg(1),((.ShowZeny)?getarg(3):0); return; } function Chk { if (getarg(0) < getarg(1)) { set @qe[0],1; return "^000000"; } else return "^000000"; } function Slot { set .@s$,getitemname(getarg(0)); switch(.ShowSlot) { case 1: if (!getitemslots(getarg(0))) return .@s$; case 2: if (getiteminfo(getarg(0),2) == 4 || getiteminfo(getarg(0),2) == 5) return .@s$+" ["+getitemslots(getarg(0))+"]"; default: return .@s$; } } function A_An { setarray .@A$[0],"a","e","i","o","u"; set .@B$, "_"+getarg(0); for(set .@i,0; .@i<5; set .@i,.@i+1) if (compare(.@B$,"_"+.@A$[.@i])) return "an "+getarg(0); return "a "+getarg(0); } } function script qshop { deletearray @i[0],getarraysize(@i); for(set .@i,0; .@i<getargcount(); set .@i,.@i+1) set @i[.@i],getarg(.@i); doevent "quest_shop::OnMenu"; end; } // Dummy shop data -- copy as needed. //============================================================ - shop qshop1 -1,909:-1 - shop qshop2 -1,909:-1 - shop qshop3 -1,909:-1 - shop qshop4 -1,909:-1 - shop qshop5 -1,909:-1 It doesn't work at all. I mean, It shows 2 npc but they're selling the same stuffs. So it's just like a copy paste of NPC with the same items/ingredients inside. My question is, is it possible to duplicate this script which the stuffs inside are not similar? If yes, please teach me how. if not, please tell. Thank you guys in advance!
  22. Hell yea! THANK YOU SO MUCH! THANKS!! :DDDD but..... berry still working x.x Berry still working x.x
×
×
  • Create New...