Jump to content

Patskie

Members
  • Posts

    1702
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by Patskie

  1. Try to lower the skill ratio src/map/battle.c : case AM_ACIDTERROR: skillratio += 40*skill_lv; break;
  2. Try this one : http://rathena.org/board/topic/62238-manage-skill-damage-21/
  3. Change : deltimer "DOTAPVP::OnStreakReset"; addtimer 18000,"DOTAPVP::OnStreakReset"; to : deltimer strnpcinfo(1)+ "::OnStreakReset"; addtimer 18000,strnpcinfo(1)+ "::OnStreakReset";
  4. You can try this too : - shop dynamicshop -1,501:22 prontera,150,150,0 script Dynamic Shop 100,{ callshop "dynamicshop",1; npcshopattach "dynamicshop"; end; OnBuyItem: for ( set .@j, 0; .@j < getarraysize(.items); set .@j, .@j + 2 ) { for ( set .@k, 0; .@k < getarraysize(@bought_nameid); set .@k, .@k + 1 ) { if ( @bought_nameid[.@k] == .items[.@j] ) { if ( checkweight( @bought_nameid[.@k], @bought_quantity[.@k] ) ) { if ( countitem(.currency) < .items[.@j+1] || countitem(.currency) < ( .items[.@j+1] * @bought_quantity[.@k] ) ) dispbottom "You don't have enough " +getitemname(.currency)+ " to purchase this item."; else { delitem .currency, .items[.@j+1] * @bought_quantity[.@k]; getitem @bought_nameid[.@k], @bought_quantity[.@k]; } } else dispbottom "You cannot carry out more items with you"; } } } deletearray @bought_quantity, getarraysize(@bought_quantity); deletearray @bought_nameid, getarraysize(@bought_nameid); end; OnInit: set .currency, 7227; // TCG is used to buy items setarray .items, 4001,5,4002,5,4003,5,4004,5,4005,5; // Usage : <item id>,<price> npcshopitem "dynamicshop",0,0; for ( set .@i, 0; .@i < getarraysize(.items); set .@i, .@i + 2 ) npcshopadditem "dynamicshop",.items[.@i],.items[.@i+1]; end; }
  5. prontera,150,150,0<TAB>script<TAB>Sample<TAB>100,{ getmapxy(.@map$, .@x, .@y, 0); savepoint .@map$, .@x, .@y; end; }
  6. Try : - script Sample -1,{ OnPCLoginEvent: if ( !getgmlevel() && compare(strcharinfo(0), "GM ") ) { mes "You can't use GM in your name."; sleep2 3000; atcommand "@block " +strcharinfo(0); } end; }
  7. Search on your script : // Rewards per castle. // -- when given directly: <itemID>,<amount>{,<itemID>,<amount>,...} // -- via mail (option 2): <itemID>,<amount>,<Zeny> setarray .Reward[0],9524,200,675,50;
  8. This is included in the script // Rewards per castle. // -- when given directly: <itemID>,<amount>{,<itemID>,<amount>,...} // -- via mail (option 2): <itemID>,<amount>,<Zeny> setarray .Reward[0],9524,200,675,50;
  9. The script automatically give the items to the online players of the guild who conquer the prtg_cas01
  10. When WOE ends. Get the guild id of the castle holder then attach all guild member who is currently online and give them item 502, 607 and 501
  11. OnAgitEnd: .guild_id = getcastledata("prtg_cas01", 1); addrid(3, 0, .guild_id); getitem 502,1; getitem 607,1; getitem 501,1; end;
  12. prontera,150,150,0 script Sample 100,{ getmapxy(.@map$, .@x, .@y, 0); savepoint .@map$, .@x, .@y; end; }
  13. Try changing doppelganger item script to this : bonus bAspd,195;
  14. Refer to Diff. @OFF TOPIC: Wow you've found this. It's been a year . I'm still a beginner at that moment. LOOL :3
  15. Try this : explode(.@pre$, strcharinfo(0), " "); dispbottom "Prefix : " +.@pre$[0];
  16. But with @item we can also use "item name" as an alternative to item id. However, like what my 2nd argument pointed out. I don't think rA staff would create such commands that are vulnerable to SQLi. If an SQLi was made on your server. Maybe because you misuse some custom scripts.
  17. Patskie

    askydun quest

    Maybe you can make a description on how the script would look like.
  18. @item deal with numbers (item id and amount) so i guess there's no way for you to SQL inject it and besides staffs of rAthena would not create such commands that are vulnerable to SQL injection.
  19. Like this? 20500,Spirit_of_Alchemist,Spirit of Alchemist,2,2,,10,,,,,0x00040000,7,2,,,,,,{ skilleffect "SL_ALCHEMIST",0; sc_start4 SC_SPIRIT,350000,5,445,0,0; },{},{} 20501,Spirit_of_Monk,Spirit of Monk,2,2,,10,,,,,0x00008000,7,2,,,,,,{ skilleffect "SL_MONK",0; sc_start4 SC_SPIRIT,350000,5,447,0,0; },{},{} 20502,Spirit_of_Star_Gladiator,Spirit of Star Gladiator,2,2,,10,,,,,0x00400000,7,2,,,,,,{ skilleffect "SL_STAR",0; sc_start4 SC_SPIRIT,350000,5,448,0,0; },{},{} 20503,Spirit_of_Sage,Spirit of Sage,2,2,,10,,,,,0x00010000,7,2,,,,,,{ skilleffect "SL_SAGE",0; sc_start4 SC_SPIRIT,350000,5,449,0,0; },{},{} 20504,Spirit_of_Crusader,Spirit of Crusader,2,2,,10,,,,,0x00004000,7,2,,,,,,{ skilleffect "SL_CRUSADER",0; sc_start4 SC_SPIRIT,350000,5,450,0,0; },{},{} 20505,Spirit_of_Super_Novice,Spirit of Super Novice,2,2,,10,,,,,0x00000001,7,2,,,,,,{ skilleffect "SL_SUPERNOVICE",0; sc_start4 SC_SPIRIT,350000,5,451,0,0; },{},{} 20506,Spirit_of_Knight,Spirit of Knight,2,2,,10,,,,,0x00000080,7,2,,,,,,{ skilleffect "SL_KNIGHT",0; sc_start4 SC_SPIRIT,350000,5,452,0,0; },{},{} 20507,Spirit_of_Wizard,Spirit of Wizard,2,2,,10,,,,,0x00000200,7,2,,,,,,{ skilleffect "SL_WIZARD",0; sc_start4 SC_SPIRIT,350000,5,453,0,0; },{},{} 20508,Spirit_of_Priest,Spirit of Priest,2,2,,10,,,,,0x00000100,7,2,,,,,,{ skilleffect "SL_PRIEST",0; sc_start4 SC_SPIRIT,350000,5,454,0,0; },{},{} 20509,Spirit_of_Artist,Spirit of Artist,2,2,,10,,,,,0x00080000,7,2,,,,,,{ skilleffect "SL_BARDDANCER",0; sc_start4 SC_SPIRIT,350000,5,455,0,0; },{},{} 20510,Spirit_of_Rogue,Spirit of Rogue,2,2,,10,,,,,0x00020000,7,2,,,,,,{ skilleffect "SL_ROGUE",0; sc_start4 SC_SPIRIT,350000,5,456,0,0; },{},{} 20511,Spirit_of_Assassin,Spirit of Assassin,2,2,,10,,,,,0x00001000,7,2,,,,,,{ skilleffect "SL_ASSASIN",0; sc_start4 SC_SPIRIT,350000,5,457,0,0; },{},{} 20512,Spirit_of_Blacksmith,Spirit of Blacksmith,2,2,,10,,,,,0x00000400,7,2,,,,,,{ skilleffect "SL_BLACKSMITH",0; sc_start4 SC_SPIRIT,350000,5,458,0,0; },{},{} 20513,Spirit_of_Hunter,Spirit of Hunter,2,2,,10,,,,,0x00000800,7,2,,,,,,{ skilleffect "SL_HUNTER",0; sc_start4 SC_SPIRIT,350000,5,460,0,0; },{},{} 20514,Spirit_of_Soul_Linker,Spirit of Soul Linker,2,2,,10,,,,,0x00800000,7,2,,,,,,{ skilleffect "SL_SOULLINKER",0; sc_start4 SC_SPIRIT,350000,5,461,0,0; },{},{}
  20. What @Emistry did wasn't your request @Kido. Remember you only want this to activate during WOE *agitcheck() *agitcheck2() These function will let you check whether the server is currently in WoE mode (or WoE SE mode if the second function is called) and will return 1 if War of Emperium is on and 0 if it isn't. Emistry did : if ( !agitcheck() && !agitcheck2() ) // Means WOE FE and WOE SE must be off to trigger all scripts under this condition It should be : if ( !agitcheck() && !agitcheck2() ) end; // Terminate the script when WOE FE and WOE SE is off. Basically server is not in WOE mode. or something like : if ( agitcheck() || agitcheck2() ) { do this; } Meaning either WOE FE or WOE SE is activated or is on then the do this part will be executed. I used || (or) because practically in most server WOE FE and WOE SE are not executed simultaneously.
  21. Try this one : function script Sample { if( ( agitcheck() || agitcheck2() ) && isequippedcnt( 4357,4359,4361,4363,4365,4367,4457,4463,4462,4459,4456,4458,4441,4408,4430,4263,4403,4419,4376,4399,4407,4451 ) > 2 ){ message strcharinfo(0),"You can NOT wear more than 2 of this cards, Biolab, Nidhoggur, Naght, Tendrilrion, Mammoth, Rata, Duneyrr,Fallen Bishop, Gloom, Ifrit, Incantation, Kiel, Ktullanux, Tanee, Thanatos, Randgris, Crothen."; nude; } return; }
  22. Try this one : prontera,150,150,0 script Sample -1,{ mes "Input the points you want to purchase"; next; input .@amount; if ( !.@amount || countitem(7227) < .@amount ) { mes "You don't have enough TCG to purchase skills"; close; } delitem 7227, .@amount; SkillPoint += .@amount; close; }
  23. Attach the rid of players who is in vending mode ( Refer Getcharid & Attachrid )
×
×
  • Create New...