Jump to content

Joseph

Members
  • Posts

    341
  • Joined

  • Last visited

Everything posted by Joseph

  1. Great idea. Someone has to create a wiki page.
  2. Just tested it out (3ceam to rAthena). Hope this will help. SQL: DROP TABLE `elemental`; DROP TABLE `skillcooldown`; ALTER TABLE `login` CHANGE `level` `group_id` tinyint(3); ALTER TABLE `char` DROP `elemental_id`; ALTER TABLE `char` ADD COLUMN `robe` smallint(6) NOT NULL default '0' AFTER `head_bottom`
  3. if ( checkcart ) { mes "No Cart is allowed!"; close; } if ( checkfalcon ) { mes "No Falcon is allowed!"; close; } if ( checkpeco ) { mes "No Peco Peco is allowed!"; close; }
  4. I saw these differences: DROP TABLE `elemental`; DROP TABLE `skillcooldown`; ALTER table `login` CHANGE `level` `group_id` tinyint(3);
  5. Search: if( strcharinfo(3) == .MapList$[.@i] && getgmlevel() <= .GMLevel Replace with: if( strcharinfo(3) == .MapList$[.@i] && getgmlevel() <= 80 && getgmlevel() >= 2 ){
  6. It would be better if you provide the full script.
  7. Client and Lua files: http://rathena.org/board/topic/54190-release-basic-rathena-client/
  8. Yeah. I assume rAthena had removed it. Hence, that problem appears. But, I wonder why they removed it. :S
  9. mobcount("this","") > 0 For some reasons, I don't see getmapmobs in rAthena script_commands.txt.
  10. Put your OnInit at the bottom and add an end. OnInit: waitingroom "Warper",0; end;
  11. Should be like this: set .@eventmulti, @event * 10;
  12. Its working. Have added a bottom message to see how many Cash Point you've gained and make sure you change the item id for POD. prontera,100,100,3 script POD Trader 100,{ set .@podid, 671; // Item ID of POD set .@podamt, countitem(.@podid); if ( .@podamt == 0 ) end; delitem .@podid, .@podamt; set #CASHPOINTS, #CASHPOINTS + .@podamt; dispbottom "You have gained " + .@podamt + " Cash Points."; end; }
  13. Again, simply edited. Not tested. Find the following code and edit your hair style blacklist. setarray .@blacklist_hs[0],1,2,3,4; // Hair Style Blacklist // +-------------------------------------------+ // | Advanced Stylist | // +-------------------------------------------+ // | By: Hudelf | // +-------------------------------------------+ // | Current Version: 2.1 | // +-------------------------------------------+ // | Description: | // | This is the traditional stylist with | // | several new features. You can now scroll| // | backwards or forwards, and save up to | // | three palettes while logged in | // +-------------------------------------------+ // | Changelog: | // | 02/08/07 - 1.0 - Script finished | // | 06/04/07 - 2.0 - Rewrote entire script | // | Added new features | // | 11/07/07 - 2.1 - Changed var types | // | Fixed minor text issues | // +-------------------------------------------+ prontera,170,180,1 script TaheeRO Stylist 122,{ set .@name$,"[^FF8000Stylist^000000]"; setarray .@max[1],500,251,26; // Number of cloths, haircolors, hairstyles in client setarray .@blacklist[0],188,143,261,232; // NPC will skip any cloth colors in this array. setarray .@blacklist_hc[0],22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39; // Hair Color Blacklist setarray .@blacklist_hs[0],1,2,3,4; // Hair Style Blacklist // Use for palettes that cause errors or just plain look bad. // Leave first value at 0 to disable. setarray .@type[1],7,6,1; // DO NOT EDIT set .@style,0; mes .@name$; mes "I can change your appearance for you if you'd like."; mes " "; mes "Just choose what you'd like to change:"; next; set .@s,select("Clothes color", "Hair color", "Hair style"); mes .@name$; mes "Alright, how would you like to search?"; next; menu "Start at the beginning",L_start, "Choose where to start",-; // CHOOSE WHERE TO START ===================================================== mes .@name$; mes "Alright, choose a style between ^0000FF0 and " +.@max[.@s]+ "^000000."; next; input .@style; if (.@style < 0 || .@style > .@max[.@s]) { mes .@name$; mes "Style chosen is out of range."; close; } L_start: setarray @revert[1],getlook(.@type[.@s]),0,0; mes .@name$; mes "Alright here we go, starting at style ^007700" +.@style+ "^000000."; next; // BEGINNING OF STYLE MENU LOOP ================================================ L_menuloop: if (.@blacklist[0]) { for (set .@f,0; .@f < getarraysize(.@blacklist); set .@f,.@f+1) { if (.@style == .@blacklist[.@f] && .@previous == 1 && .@s == 1) { message strcharinfo(0),"GM Message - Cloth " +.@style+ " was removed."; set .@style, .@style - 1; goto L_menuloop; } else if (.@style == .@blacklist[.@f] && .@s == 1) { message strcharinfo(0),"GM Message - Cloth " +.@style+ " was removed."; set .@style, .@style +1; goto L_menuloop; } } } if (.@blacklist_hc[0]) { for (set .@f,0; .@f < getarraysize(.@blacklist_hc); set .@f,.@f+1) { if (.@style == .@blacklist_hc[.@f] && .@previous == 1 && .@s == 2) { message strcharinfo(0),"GM Message - Hair Color " +.@style+ " was removed."; set .@style, .@style - 1; goto L_menuloop; } else if (.@style == .@blacklist_hc[.@f] && .@s == 2) { message strcharinfo(0),"GM Message - Hair Color " +.@style+ " was removed."; set .@style, .@style +1; goto L_menuloop; } } } if (.@blacklist_hs[0]) { for (set .@f,0; .@f < getarraysize(.@blacklist_hs); set .@f,.@f+1) { if (.@style == .@blacklist_hs[.@f] && .@previous == 1 && .@s == 3) { message strcharinfo(0),"GM Message - Hair Style " +.@style+ " was removed."; set .@style, .@style - 1; goto L_menuloop; } else if (.@style == .@blacklist_hs[.@f] && .@s == 3) { message strcharinfo(0),"GM Message - Hair Style " +.@style+ " was removed."; set .@style, .@style +1; goto L_menuloop; } } } setlook .@type[.@s],.@style; mes "This is style number ^007700" +.@style+ "^000000."; set .@next, .@style + 1; set .@prev, .@style - 1; // MAXIMUM MENU if (.@style == .@max[.@s]) { set .@next,0; message strcharinfo(0),"Limit Reached"; } // MINIMUM MENU ============================================================== if (.@style == 0) { set .@prev,.@max[.@s]; message strcharinfo(0),"Beginning Reached"; } // PREVIOUS MENU ============================================================= if (.@previous) { menu "^FF0000Previous - " +.@prev+ "^000000",L_prev, "^0000FFNext - " +.@next+ "^000000",L_next, "Jump to",L_jump, "Save",L_save, "Load",L_load; } // DEFAULT MENU ============================================================== menu "^0000FFNext - " +.@next+ "^000000",L_next, "^FF0000Previous - " +.@prev+ "^000000",L_prev, "Jump to",L_jump, "Save",L_save, "Load",L_load; L_next: set .@previous,0; set .@style, .@next; goto L_menuloop; L_prev: set .@previous,1; set .@style, .@prev; goto L_menuloop; L_jump: next; mes .@name$; mes "Choose which style you'd like to jump to:"; next; input .@style; if (.@style < 0 || .@style > .@max[.@s]) { mes .@name$; mes "Style chosen is out of range."; close; } goto L_menuloop; L_save: next; mes .@name$; mes "Choose which slot you'd like to save to:"; set .@x, select("Slot 1 - [" +@revert[1]+ "]", "Slot 2 - [" +@revert[2]+ "]", "Slot 3 - [" +@revert[3]+ "]"); setarray @revert[.@x], .@style; goto L_menuloop; L_load: next; mes .@name$; mes "Choose which slot you'd like to load from:"; set .@x, select("Slot 1 - [" +@revert[1]+ "]", "Slot 2 - [" +@revert[2]+ "]", "Slot 3 - [" +@revert[3]+ "]"); set .@style, @revert[.@x]; goto L_menuloop; } [/codeBOX]
  14. Replace "<equip1>" and "<equip2>" with the item id of the equipments. { if(isequipped(<equip1>,<equip2>)) { bonus bMdef,20; } },{},{}
  15. Well, try this. map,x,y,z script POD Trader SpriteID,{ set .@podid, 1234; // Item ID of POD set .@podamt, countitem(.@podid); if ( .@podamt == 0 ) end; delitem .@podid, .@podamt; set #CASHPOINTS, #CASHPOINTS + .@podamt; end; }
  16. Simply edited from the script. Not tested. // +-------------------------------------------+ // | Advanced Stylist | // +-------------------------------------------+ // | By: Hudelf | // +-------------------------------------------+ // | Current Version: 2.1 | // +-------------------------------------------+ // | Description: | // | This is the traditional stylist with | // | several new features. You can now scroll| // | backwards or forwards, and save up to | // | three palettes while logged in | // +-------------------------------------------+ // | Changelog: | // | 02/08/07 - 1.0 - Script finished | // | 06/04/07 - 2.0 - Rewrote entire script | // | Added new features | // | 11/07/07 - 2.1 - Changed var types | // | Fixed minor text issues | // +-------------------------------------------+ prontera,170,180,1 script TaheeRO Stylist 122,{ set .@name$,"[^FF8000Stylist^000000]"; setarray .@max[1],500,251,26; // Number of cloths, haircolors, hairstyles in client setarray .@blacklist[0],188,143,261,232; // NPC will skip any cloth colors in this array. setarray .@blacklist_hc[0],22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39; // Hair Color Blacklist // Use for palettes that cause errors or just plain look bad. // Leave first value at 0 to disable. setarray .@type[1],7,6,1; // DO NOT EDIT set .@style,0; mes .@name$; mes "I can change your appearance for you if you'd like."; mes " "; mes "Just choose what you'd like to change:"; next; set .@s,select("Clothes color", "Hair color", "Hair style"); mes .@name$; mes "Alright, how would you like to search?"; next; menu "Start at the beginning",L_start, "Choose where to start",-; // CHOOSE WHERE TO START ===================================================== mes .@name$; mes "Alright, choose a style between ^0000FF0 and " +.@max[.@s]+ "^000000."; next; input .@style; if (.@style < 0 || .@style > .@max[.@s]) { mes .@name$; mes "Style chosen is out of range."; close; } L_start: setarray @revert[1],getlook(.@type[.@s]),0,0; mes .@name$; mes "Alright here we go, starting at style ^007700" +.@style+ "^000000."; next; // BEGINNING OF STYLE MENU LOOP ================================================ L_menuloop: if (.@blacklist[0]) { for (set .@f,0; .@f < getarraysize(.@blacklist); set .@f,.@f+1) { if (.@style == .@blacklist[.@f] && .@previous == 1 && .@s == 1) { message strcharinfo(0),"GM Message - Cloth " +.@style+ " was removed."; set .@style, .@style - 1; goto L_menuloop; } else if (.@style == .@blacklist[.@f] && .@s == 1) { message strcharinfo(0),"GM Message - Cloth " +.@style+ " was removed."; set .@style, .@style +1; goto L_menuloop; } } } if (.@blacklist_hc[0]) { for (set .@f,0; .@f < getarraysize(.@blacklist_hc); set .@f,.@f+1) { if (.@style == .@blacklist_hc[.@f] && .@previous == 1 && .@s == 2) { message strcharinfo(0),"GM Message - Hair Color " +.@style+ " was removed."; set .@style, .@style - 1; goto L_menuloop; } else if (.@style == .@blacklist_hc[.@f] && .@s == 2) { message strcharinfo(0),"GM Message - Hair Color " +.@style+ " was removed."; set .@style, .@style +1; goto L_menuloop; } } } setlook .@type[.@s],.@style; mes "This is style number ^007700" +.@style+ "^000000."; set .@next, .@style + 1; set .@prev, .@style - 1; // MAXIMUM MENU if (.@style == .@max[.@s]) { set .@next,0; message strcharinfo(0),"Limit Reached"; } // MINIMUM MENU ============================================================== if (.@style == 0) { set .@prev,.@max[.@s]; message strcharinfo(0),"Beginning Reached"; } // PREVIOUS MENU ============================================================= if (.@previous) { menu "^FF0000Previous - " +.@prev+ "^000000",L_prev, "^0000FFNext - " +.@next+ "^000000",L_next, "Jump to",L_jump, "Save",L_save, "Load",L_load; } // DEFAULT MENU ============================================================== menu "^0000FFNext - " +.@next+ "^000000",L_next, "^FF0000Previous - " +.@prev+ "^000000",L_prev, "Jump to",L_jump, "Save",L_save, "Load",L_load; L_next: set .@previous,0; set .@style, .@next; goto L_menuloop; L_prev: set .@previous,1; set .@style, .@prev; goto L_menuloop; L_jump: next; mes .@name$; mes "Choose which style you'd like to jump to:"; next; input .@style; if (.@style < 0 || .@style > .@max[.@s]) { mes .@name$; mes "Style chosen is out of range."; close; } goto L_menuloop; L_save: next; mes .@name$; mes "Choose which slot you'd like to save to:"; set .@x, select("Slot 1 - [" +@revert[1]+ "]", "Slot 2 - [" +@revert[2]+ "]", "Slot 3 - [" +@revert[3]+ "]"); setarray @revert[.@x], .@style; goto L_menuloop; L_load: next; mes .@name$; mes "Choose which slot you'd like to load from:"; set .@x, select("Slot 1 - [" +@revert[1]+ "]", "Slot 2 - [" +@revert[2]+ "]", "Slot 3 - [" +@revert[3]+ "]"); set .@style, @revert[.@x]; goto L_menuloop; } [/codeBOX]
  17. The blacklist function is inside the script. You'll just have to add in the numbers into this array. setarray .@blacklist[0],188,143,261,232; // NPC will skip any cloth colors in this array.
  18. This is the correct way to do it. OnClock0000: monster "amatsu",0,0,"--ja--",1002,2;
  19. I tried adding a goto failed; example: if( getcharid(2) != "guild ID" ) failed; failed : npctalk " Your Failed"; but the script does not work properly if there is a solution? Should be like this.. if( getcharid(2) != "guild ID" ) goto failed; failed : npctalk " Your Failed"; end;
  20. Joseph

    Help

    Line 56 and Line 112: Missing one ")" if((countitem(7053) > 20) || (countitem(916) > 10)[color=#ff0000])[/color] goto L_ItemYes; if((countitem(957) > 50) || (countitem(938) > 40)[color=#ff0000])[/color] goto L_ItemsCheck; Line 70 - 82: Cases close up with "}" and missing one "+" case 2: mes "[John, the Evil]"; mes "If you wish to get the blades, you must first bring me the items!"; close; [color=#ff0000]}[/color] case 2: mes "[John, the Evil]"; mes "If you deny, then you can join the Good Forces."; mes "Do not make yourself a fool."; close; [color=#ff0000]}[/color] case 2: mes "[John, the Good]"; mes "Do you, "+strcharinfo(0)[color=#ff0000]+[/color]" accept to join the Good Force?"; next; Line 108-133: You have 2 options but only 1 case. Line 135-146: Same thing, close cases with "}". Add it yourself. case 2: mes "[John, the Good]"; mes "Aww. Well, can you please go get them?"; close; } case 2: mes "[John, the Good]"; mes "You deny to join the good forces?!"; next; mes "[John, the Good]"; mes "Oh, that's such a pitty..."; close;
  21. Then it sounds like a source modification for me.
  22. Probably by restricting the items will solve your problem. db/item_noequip.txt: //PVP 14529,2 //Greed Scroll <PoisonBottleItemID>,2 //GVG 12218,4 //LV5 Assumptio Scroll 14529,4 //Greed Scroll 14590,4 //Party Assumptio 5 Scroll <PoisonBottleItemID>,4
  23. Joseph

    Help

    Wow..! You must close your cases with "}", right after it ends. Look at this, hope it helps to explain: switch ( select ( "Case 1:Case2" )) { Case 1: switch ( select ( "Case 1:Case 2" )) { Case 1: break; Case 2: break; } break; Case 2: switch ( select ( "Case 1:Case 2" )) { Case 1: break; Case 2: break; } break; }
×
×
  • Create New...