Jump to content

caspa

Members
  • Posts

    499
  • Joined

  • Last visited

Everything posted by caspa

  1. there seems to be a problem.. coz when i click the npc nothing is happening.....
  2. Thx so much it works perfectly fine....
  3. Thank you sir bry what about like you need to be wearing a middle headgear and that headgear has to have a maya purple card before you can enter.
  4. how to create an npc that if i'm not wearing any middle headgear i can't enter the map or the npc won't let me warp to the area.
  5. caspa

    Inventory NPC

    how to change zeny into TCG? like if i buy something from the shop it'll take TCG Card instead of zeny?
  6. ohh... haha did not notice that one... thx for the info about the custom gem... LOL!!
  7. alright...... thank you guyz..... =3
  8. how to add waitingroom on a warp portal........
  9. dunno where to properly post this but..... a couple of days ago i've seen a post giving guides about the list of code you can use here.. like [.code] [./code] [.quote] [./quote] and etc. i could not find it anymore.... i forgot to bookmark it.... can anyone share the link?
  10. Can somebody help me on this script? i would like the script to do when using the cookie bag item... the item 12130 will be ignored coz if i click the bag, the cookie bag is also shown on the menu... and i'm thinking what if the player accidentally stores the bag? how will they open the storage again.... also can somebody point out what's the max item the custom storage can hold? can it hold 600 different items also? if it can hold 600 items can i limit it to 100 or 150 only? Name : Bag (SQL) Creator : Goddameit Script Details : function script CustomStorage { function clean { deletearray @n[0],128; deletearray @nam[0],128; deletearray @nid[0],128; deletearray @inventorylist_id[0],128; deletearray @inventorylist_amount[0],128; deletearray @inventorylist_equip[0],128; deletearray @inventorylist_refine[0],128; deletearray @inventorylist_identify[0],128; deletearray @inventorylist_attribute[0],128; deletearray @inventorylist_card1[0],128; deletearray @inventorylist_card2[0],128; deletearray @inventorylist_card3[0],128; deletearray @inventorylist_card4[0],128; deletearray @inventorylist_expire[0],128; set @inventorylist_count,0; } if(getarg(1)) { clean; query_sql("SELECT nameid,id,amount FROM `custom_storage` WHERE `account_id` = "+getcharid(3)+"",@n,@nid,@nam); set @select$,""; for(set .@i,0;.@i<getarraysize(@n);set .@i,.@i+1) set @select$,@select$+":[^0000ff"+getitemname(@n[.@i])+"^000000]x[^ff0000"+@nam[.@i]+"^000000]"; message strcharinfo(0),"Input 0 To Pick All"; if(input(@ss,1,@nam[set(@menu,select(@select$)-2)])) set @ss,@nam[@menu]; getitem @n[@menu],@ss; if(set(.@zz,@nam[@menu]-@ss)>0) query_sql "UPDATE `custom_storage` set amount = "+.@zz+" where id = "+@nid[@menu]; else query_sql "DELETE FROM `custom_storage` WHERE `id` = "+@nid[@menu]; dispbottom "Pick Complete."; clean; close; } clean; getinventorylist; set @select$,""; for(set .@i,0;.@i<@inventorylist_count;set .@i,.@i+1) set @select$,@select$+":[^0000ff"+getitemname(@inventorylist_id[.@i])+"^000000]x[^ff0000"+@inventorylist_amount[.@i]+"^000000]"; message strcharinfo(0),"Input 0 To Store All"; if(@inventorylist_equip[set(@menu,select(@select$)-2)]||@inventorylist_expire[@menu]) { clean; dispbottom "Store Fail ( Unequipped The Item First )"; close; } if(input(@ss,1,@inventorylist_amount[@menu])) set @ss,@inventorylist_amount[@menu]; query_sql("SELECT nameid,id,amount FROM `custom_storage` WHERE `account_id` = "+getcharid(3)+"",.@n,.@nid,.@nam); if(getarg(0)<getarraysize(.@n)) { clean; close; } for(set .@h,set(.@g,0);.@n[.@h];set .@h,.@h+1) if(.@n[.@h]==@inventorylist_id[@menu]) { if(set(.@g,getiteminfo(.@n[.@h],2))>=4&&.@g<=10&&.@g!=6) set .@g,0; else set .@g,.@nam[.@h]+@ss; break; } if(!.@g) query_sql "INSERT `custom_storage` VALUES ( NULL,"+getcharid(3)+","+@inventorylist_id[@menu]+","+@ss+",0,"+@inventorylist_identify[@menu]+","+@inventorylist_refine[@menu]+","+@inventorylist_attribute[@menu]+","+@inventorylist_card0[@menu]+","+@inventorylist_card1[@menu]+","+@inventorylist_card2[@menu]+","+@inventorylist_card3[@menu]+",0)"; else query_sql "UPDATE `custom_storage` set amount = "+.@g+" where id = "+.@nid[.@h]; delitem @inventorylist_id[@menu],@ss; dispbottom "Store Complete."; clean; close; inputfail: dispbottom "Invalid Ammount."; close; }
  11. @capuche : how to add the ally and anta on this script capu? prontera,155,155,5 script Guild manager 56,{ //- Limit 128 guild names //- NPC name .@npc$ = "[ Guild manager ]"; //-------------------------------------- L_list: // Delete variables // ---------------- .@m = 0; .@cast_owned$ = ""; setarray .@var$, ".@guild_id", ".@name$", ".@master$", ".@guild_lv", ".@connect_member", ".@max_member", ".@name_m$", ".@castle_id"; for( .@i = 0; .@i < getarraysize( .@var$ ); .@i++ ) deletearray getd( .@var$[ .@i ] ), getarraysize( getd( .@var$[ .@i ] ) ); // Count guild // ----------- query_sql( "SELECT COUNT(`guild_id`) FROM `guild`", .@count ); mes .@npc$; mes " "; mes "Total: ^FF0000"+ .@count +"^000000 guild"+ ( .@count -1 ? "s." : "." ); mes "Select a guild for more informations."; next; // Menu display name guild // ----------------------- query_sql( "SELECT `guild_id`, `name`, `master`, `guild_lv` FROM `guild` ORDER BY `guild_id` ASC limit 128", .@guild_id, .@name$, .@master$, .@guild_lv ); .@s = select( implode( .@name$, ":" ) ) -1; .@c = query_sql( "SELECT `castle_id` FROM `guild_castle` WHERE `guild_id` = '"+ .@guild_id[ .@s ] +"'", .@castle_id ); for( .@i = 0; .@i < .@c; .@i++ ) .@cast_owned$ = .@cast_owned$ + .castle$[ .@castle_id[ .@i ] ] + ( .@i == .@c -1 ? "" : ", " ); .@size = query_sql( "SELECT `name` FROM `guild_member` WHERE `guild_id`= '"+ .@guild_id[ .@s ] +"' ORDER BY `position` ASC", .@name_m$ ); for( .@i = 0; .@i < .@size; .@i++ ) if( getcharid( 0,.@name_m$[ .@i ] ) ) .@m++; mes .@npc$; mes "Guild name: ^FF0000"+ .@name$[ .@s ] +"^000000", "Master name: ^FFCC00"+ .@master$[ .@s ] +"^000000", "Guild lvl: ^FF00CC"+ .@guild_lv[ .@s ] +"^000000", "Members Online: ^0000FF"+ .@m +"^000000", "Castle owned: ^CC00CC"+ ( .@c ? .@cast_owned$ : "None" ) +"^000000"; // Menu members // ------------ switch( select( "~ ^777777Informations members^000000", "~ ^777777Cancel^000000", "~ ^777777Choose another guild^000000" ) ) { case 1: next; break; case 2: next; mes .@npc$; mes " "; mes "See you soon ^-^"; close; case 3: next; goto L_list; } deletearray .@name_m$, getarraysize( .@name_m$ ); .@size = query_sql( "SELECT `name` FROM `guild_member` WHERE `guild_id`= '"+ .@guild_id[ .@s ] +"' ORDER BY `position` ASC", .@name_m$ ); mes .@npc$; mes "Members of ^0000FF"+ .@name$[ .@s ] +"^000000 guild.", "- Red: currently ^FF0000offline^000000.", "- Green: currently ^00C957online^000000.", " "; for( .@i = 0; .@i < .@size; .@i++ ) mes "-> "+ ( getcharid( 0,.@name_m$[ .@i ] ) ? "^00C957" : "^FF0000" ) + .@name_m$[ .@i ] +"^000000"; next; goto L_list; OnInit: deletearray .castle$, getarraysize( .castle$ ); //- prevent duplicate setarray .castle$, "Neuschwanstein", "Hohenschwangau", "Nuernberg", "Wuerzburg", "Rothenburg", "Repherion", "Eeyolbriggar", "Yesnelph", "Bergel", "Mersetzdeitz", "Bright Arbor", "Scarlet Palace", "Holy Shadow", "Sacred Altar", "Bamboo Grove Hill", "Kriemhild", "Swanhild", "Fadhgridh", "Skoegul", "Gondul", "Earth", "Air", "Water", "Fire", "Himinn", "Andlangr", "Viblainn", "Hljod", "Skidbladnir", "Mardol", "Cyr", "Horn", "Gefn", "Bandis"; end; }
  12. i tried this one... but the guild on my antagonist list is on my allies and whenever i add my 2nd allies the name is being repeated twice in ally list.
  13. can someone provide an npc where it shows all the current guild on the server then if click a specific guild it will tell you the list of it's allies and antagonist.....
  14. yes.... that's what i'm talking about.... Thank you.. capuche [solved]
  15. i tried urs but its not showing any seconds..... if possible i would like a real clock waitingroom...
  16. how to create a waitingroom that display the server time [ Clock : 03:29 49s PM ] -- i wan't the seconds to be running... like [ Clock : 03:29 50s PM ] [ Clock : 03:29 51s PM ] [ Clock : 03:29 52s PM ] [ Clock : 03:29 53s PM ] [ Clock : 03:29 54s PM ] [ Clock : 03:29 55s PM ] [ Clock : 03:29 56s PM ] [ Clock : 03:29 57s PM ] [ Clock : 03:29 58s PM ] [ Clock : 03:29 59s PM ] [ Clock : 03:30 00s PM ]
  17. about the auction? didn't the rathena implemented a vending system where you can vend using different kind of items? why make hassle creating npc.. when you can vend directly?
  18. lolsss figured it out.... its on this part set .@skulls, .ITEMID_SKULL_; into set .@skulls,countitem(.ITEMID_SKULL_); [solved]
  19. yep i'm using the skull that has names on it.... after being killed the 7420 and still don't get any. this is the error i get everytime i try to exchange the skulls
  20. i'm not getting any items or points whenever i exchange the skulls
  21. caspa

    input error

    thank sir..... [ solved ]
×
×
  • Create New...