Jump to content

Capuche

Developer
  • Posts

    2407
  • Joined

  • Last visited

  • Days Won

    52

Everything posted by Capuche

  1. None of them check the ip of the user.
  2. Make an update instead of delete to change the id
  3. I believe there isn't any npc for adoption. More informations : http://irowiki.org/wiki/Adoption_System
  4. - script unuioh -1,{ OnPCLoadMapEvent: specialeffect2 515;// effect centered on the invoking character's sprite end; } // your map prontera mapflag loadevent
  5. If you think it's a bug, please post in the bug tracker. Thanks!
  6. trunk/src/config/renewal.h /// renewal ASPD [malufett] /// (disable by commenting the line) /// /// leave this line to enable renewal ASPD /// - shield penalty is applied /// - AGI has a greater factor in ASPD increase /// - there is a change in how skills/items give ASPD /// - some skill/item ASPD bonuses won't stack #define RENEWAL_ASPD This ?
  7. announce "The [Valfreyja 1] stronghold of " + GetCastleName("arug_cas01") has been conquered by "+ .@breakername$ +" of the [" + getguildname(.@gid) + "] ,bc_all|bc_woe; There is some typo error announce "The [Valfreyja 1] stronghold of " + GetCastleName("arug_cas01") +" has been conquered by "+ .@breakername$ +" of the [" + getguildname(.@gid) + "]" ,bc_all|bc_woe;
  8. or (stolen from http://rathena.org/board/topic/77031-armor-enchanter-npc/#entry170869 ) prontera,156,178,5 script ldfhsdfkljs 100,{ mes "do you want to enchant your equipment ?"; next; .@s = select( .menu$ ) -1; if ( !getequipisequiped( .const_equip[.@s] ) || .const_equip[.@s] == EQI_HAND_L && getiteminfo( getequipid( EQI_HAND_L ),2 ) != 5 ) { mes "you did not equip an "+ .menu_name$[.@s] +" at the moment"; close; } .@id = getequipid( .const_equip[.@s] ); .@ref = getequiprefinerycnt( .const_equip[.@s] ); .@card1 = getequipcardid( .const_equip[.@s], 0 ); .@card2 = getequipcardid( .const_equip[.@s], 1 ); .@card3 = getequipcardid( .const_equip[.@s], 2 ); .@card4 = getequipcardid( .const_equip[.@s], 3 ); if ( .@card1 == 255 || .@card1 == 254 ) { mes "I can't enchant a signed equipment"; close; } if ( .@card4 ) { mes "this armor has already enchanted"; close; } .@rand = rand(.totalchance); while ( ( .@rand = .@rand - .rate[.@r] ) >= 0 ) .@r++; .@o = rand(0,5); // orb of str/int/dex .... delitem2 .@id, 1,1, .@ref, 0, .@card1, .@card2, .@card3, 0; getitem2 .@id, 1,1, .@ref, 0, .@card1, .@card2, .@card3, 4700 + .@o * 10 + .@r; equip .@id; close; OnInit: setarray .rate, 55,50,45,40,35; // rate of getting +1 is 55%, +2 is 50% .... +10 is 10% ... setarray .const_equip, EQI_ARMOR, EQI_HAND_L, EQI_GARMENT, EQI_SHOES; setarray .menu_name$, "Armor", "Shield", "Garment", "Shoes"; .menu$ = implode( .menu_name$,":" ); while ( .@i < 10 ) { .totalchance = .totalchance + .rate[.@i]; .@i++; } end; }
  9. You forgot the brackets if( .@s == 1 ) { mes "^0000ff[Capt. Krauser]^000000"; mes "Okay 'ave a nice day."; } else if( .@s == 3 ) {
  10. getitem2 in script_commands docs give some informations.
  11. You mean you can trade only the skull with a specific name ?
  12. - shop costume_shop -1,501:-1 prontera,150,180,5 script bghjkl 58,{ mes "Hi Good Day! Do you have spare costumes !"; mes "that you wanna get rid of?"; next; set .@s, select( "No ! Goood bye.", "Trade", "More informations" ); if( .@s == 1 ) mes "Okay have a nice day."; else if( .@s == 3 ) { mes "blabla more informations."; } getinventorylist; .@calc = 1024|2048|4096|8192;// to lazy to calculate for( set .@i, 0; .@i < @inventorylist_count; set .@i, .@i + 1 ) if( !@inventorylist_expire[.@i] ) { if ( getiteminfo( @inventorylist_id[.@i],5 ) & .@calc ) { for( set .@j, 0; .@j < @inventorylist_amount[.@i]; set .@j, .@j + 1 ) { set .@list_id[ .@size_shop ], @inventorylist_id[.@i]; set .@size_shop, .@size_shop + 1; } } } if( !.@size_shop ) mes "Hmm I don't see any costumes on your inventory. Please check your inventory."; else { mes "Okay, here's a list of the costumes in your inventory."; next; npcshopitem "costume_shop",501,-1; for( set .@i, 0; .@i < .@size_shop; set .@i, .@i + 1 ) npcshopadditem "costume_shop",.@list_id[.@i],0; npcshopdelitem "costume_shop",501; callshop "costume_shop", 1; npcshopattach "costume_shop"; } end; OnBuyItem: // if( !checkweight2( .reward_ID,.reward_amount ) ) { // message strcharinfo(0),"You need additional weight capacity to complete this trade."; // close; // } set .@count, getarraysize( @bought_nameid ); for( set .@i, 0; .@i < .size_count; set .@i, .@i + 1 ) {// don't check the weight.. set .@check, .reward_amount[.@i] * .@count; if( .@check > 30000 ) { message strcharinfo(0),"You can't purchase that many "+ getitemname( .reward_ID[.@i] ) +"."; end; } set .@gain$, .@gain$ + ( getstrlen( .@gain$ ) ? ", " : "" ) + .@check +" "+ getitemname( .reward_ID[.@i] ); } mes "Sell the costume for "+ .@gain$ +"?"; next; if( select( "Yes, I sell", "No" ) -1 ) end; for( set .@i, 0; .@i < .@count; set .@i, .@i + 1 ) if ( countitem( @bought_nameid[.@i] ) < @bought_quantity[.@i] ) { mes "Have you lost one item?"; close; } for( set .@i, 0; .@i < .@count; set .@i, .@i + 1 ) delitem @bought_nameid[.@i], @bought_quantity[.@i]; for( set .@i, 0; .@i < .size_count; set .@i, .@i + 1 ) getitem .reward_ID[.@i], .reward_amount[.@i] * .@count; mes "Good bye."; close; OnInit: setarray .reward_ID, 7539; // item ID gained - you can add more ID <item ID>, <item ID>,... setarray .reward_amount, 10; // item count gained - ( count of the item /element of array of .reward_ID ) set .size_count, getarraysize( .reward_amount ); end; }
  13. prontera,150,150,0 script Sample 100,{ if ( getgmlevel() < 60 ) end; set .@npc$, "[ " +strnpcinfo(1)+ " ]"; mes .@npc$; mes "What do you want, " + (Sex ? "Sir" : "Maam") + " " +strcharinfo(0)+ "?"; next; switch( select("PVP1:GVG:BG:Cancel") ) { case 1: globalmes "A GM wishes to observe the PVP, proceed there if you wish to join."; break; case 2: globalmes "A GM is calling all guilds wishing to fight in the GVG arena."; break; case 3: globalmes "A GM wishes to start the Battlegrounds, proceed to BG arena if you wish to participate."; break; case 4: mes "Good bye."; close; } mes "Done."; close; } The message can't be in color then.
  14. Try the final version. Check if you have any error on your mapserv. - script trial -1,{ OnInit: bindatcmd "test",strnpcinfo(3)+"::OnAtcommand",60,60; end; OnAtcommand: if ( .@atcmd_numparameters != 2 ) { message .@myname$, "Usage: "+ .@atcmd_command$ +" <item id> <amount>"; end; } .atoi_id = atoi( .@atcmd_parameters$[0] ); .atoi_amount = atoi( .@atcmd_parameters$[1] ); .@myname$ = strcharinfo(0); if ( getiteminfo( .atoi_id,0 ) == -1 ) { message .@myname$, "Requesting to send an non-existing item ("+ .atoi_id +"). "+ .@atcmd_command$ +" failed."; end; } else if ( .atoi_amount < 1 ) { message .@myname$, "You can't send "+ .atoi_amount +" item. "+ .@atcmd_command$ +" failed."; end; } addrid(1); getitem .atoi_id, .atoi_amount; end; }
  15. I think you load the script several times. Do a reload script
  16. prontera,150,150,0 script Sample 100,{ if ( getgmlevel() < 60 ) end; set .@npc$, "[ " +strnpcinfo(1)+ " ]"; mes .@npc$; mes "What do you want, " + (Sex ? "Sir" : "Maam") + " " +strcharinfo(0)+ "?"; next; switch( select("PVP1:GVG:BG:Cancel") ) { case 1: announce "A GM wishes to observe the PVP, proceed there if you wish to join.",bc_all,0x6600CC; break; case 2: announce "A GM is calling all guilds wishing to fight in the GVG arena.",bc_all,0x6600CC; break; case 3: announce "A GM wishes to start the Battlegrounds, proceed to BG arena if you wish to participate.",bc_all,0x6600CC; break; case 4: mes "Good bye."; close; } mes "Done."; close; }
  17. Maybe you use an old client which use the old version of mgstringtable
  18. maybe with a makeitem2 custom script command..
  19. I don't understand your question. May you reformulate it?
  20. .. and? where is your request?
  21. http://svn.rathena.org/svn/rathena/trunk/db/pre-re/skill_db.txt following the comments -> change to 6
  22. Post a screenshot of your error display by the mapserv
  23. To complete Patskie: add waitingroom under the label OnInit to add a chatroom when the script is loaded.
  24. users -> change privilege -> create -> execute
  25. Delete the class ID of Ninja, Gunslinger and baby novice in } else switch(Class) { case 0: Job_Menu(1,2,3,4,5,6,23,4046,24,25,4023); case 4001: Job_Menu(4002,4003,4004,4005,4006,4007); case 4023: Job_Menu(4024,4025,4026,4027,4028,4029,4045); default: mes "An error has occurred."; break; } read your db/const.txt to get the class
×
×
  • Create New...