Jump to content

darkpatow

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by darkpatow

  1. Hi, My idea is to do the following: a) TF_DOUBLE [Double Attack]: For each skill level, it gives +1% ASPD (and it still gives double attack normally). So in level 10, it'd give +10% ASPD. b) TF_MISS [Improve Flee]: For each skill level, you can have +1 monster attacking you, without suffering flee penalty (and it still gives the same flee bonus) About this flee penalty, there's an option in battle.conf: agi_penalty_count: 3 So the default value is 3, which means that, if the number of monsters attacking you is >= 3, you lose x% flee for each monster, counting from the 3rd (inclusive). What i'd like to change is, for example, if you have Improve Flee level 1, you only lose flee counting from the 4th monster (inclusive); if you have Improve Flee level 10, you only lose flee counting from the 13th monster (inclusive). Any help will be appreciated!
  2. @Scanty, it worked! Thank you very much! @edit: i should pay more attention to typos ??
  3. Thank you, @Scanty. Now the script runs when i use the item. Would you know why it's returning "null" for the item? I couldn't understand why it doesn't work, because I use this same script in a NPC and it works.
  4. Hi, I created an item that should call a function which gives a random item from a defined array of items and announce it globally. I created this function using the same piece of code from a NPC who does the same (and it's working). On item_db, I put {callfunc "a_box_visu";} in the script field. The other fields (except for ID) are just a copy from Gift Box 3. When I use the item, it vanishes from the inventory but nothing happens. Here's my script: function script a_box_visu { set aboxqual, rand(1,2); if (a_boxqual == 1) { setarray $@a_boxarray[0] ,31214,31215,31221,31229,31233,31244,31255,31267,31272,31273,31276,31279,31287,31292,31294,31298,31301 ,31303,31310,31313,31314,31318,31324,31326,31327,31334,31337,31338,31342,31345,31347,31348,31349,31355 ,31361,31363,31364,31372,31378,31380,31381,31387,31389,31393,31396,31398,31399,31435,31436,31440,31446 ,31448,31456,31457,31459,31460,31465,31467,31474,31480,31481,31490,31491,31492,31493,31495,31512,31516 ,31521,31524,31526,31527,31528,31529,31532,31537,31541,31547,31553,31555,31557,31559,31560,31573,31574 ,31575,31576,31577,31578,31579,31580,31581,31582,31583,31584,31585,31586,31587,31588,31592,31608,31615 ,31616,31623,31625,31631,31635,31636,31642,31648,31650,31651,31663,31672,31673,31682,31684,31692,31714,31724; } if(a_boxqual == 2) { setarray $@a_boxarray[0] ,31725,31726,31730,31740,31742,31747,31750,31754,31757,31758,31764,31765,31775,31780 ,31788,31789,31793,31799,31803,31811,31812,31813,31815,31816,31835,31836,31840,31842 ,31850,31858,31865,31879,31883,31890,31894,31900,31905,31908,31914,31933,31946,31952 ,31953,31969,31982,32004,32015,32021,32064,32066,32067,32071,32075,32079,32098,32099 ,32100,32154,32157,32160,32173,32177,32216,32222,32225,32244,32269,32277,32278,32279 ,32297,32310,32311,32322,32340,32355,32359,32367; } set $a_boxid, rand(getarraysize($@a_boxarray[0])); getitem $@a_boxarray[$a_boxid],1; announce strcharinfo(0) + " acabou de obter um(a) " + getitemname($@a_boxarray[$a_boxid]) + " na Caixa Especial de Visuais.", bc_all; } Does anyone have an idea why this isn't working? I loaded the script using @loadnpc [path], and i reloaded item_db before using the item. Any help will be appreciated ?
  5. Omg, that'd be terrible. He must be busy lately, I hope he'll be back shortly. Could you please let me know if you get any response?
  6. I tried that too, but on his profile it's said that we should PM him, there's no skype link attached. I did find a skype link on Third Party > Gepard Shield 3.0 topic, but I don't know if it's working, because this link opens Skype but doesn't seem to perform any action further.
  7. Hi, I've just released my server in Beta version. In order to release it officially, I'd like to have Gepard Shield protection. I tried to reach @Functor in order to know what options and prices are available, and how we could proceed with payment and installation, but it seems he's not receiving messages (I tried to PM him and I got "Functor is not receiving messages"). Does anyone know how I can talk to him? Thank you,
  8. Hi there, i have a script where i summon a random monster, based on an array, and announce who killed it and which monster it was. It's working, it does summon the random monster, but when it announces the killed monster, the "getmonsterinfo" function is returning "null" (O Mini-Chefe null foi MORTO pelo guerreiro [Player Name]) .mvp_mapa$ is the string "pay_dun03" .mvp_quant is an integer to set the number of monsters. set .mvp_mapa$,"pay_dun03"; set .mvp_quant,1; .@idsalamvpmvp is an array of integers with some monters' id: setarray .@idsalamvpmvp[0] ,1096 // Angeling ,1388 // ArchAngeling ,1295 // Barão Coruja ,1582 // Deviling ,1093 // Eclipse ,1307 // Gato de Nove Caudas ,1120 // Ghostring ,1200 // Jirtas ,1091 // Libélula ,1296 // Líder Cobold ,1299 // Líder Goblin ,1092 // Lobo Errante ,1090 // Mastering ,1289 // Maya Macho ,1283 // Quimera ,1089 // Sapo-Cururu ,1088 // Vocal ; .idsalamvp is a random integer limited to the array size. set .idsalamvp, rand(getarraysize(.@idsalamvpmvp[0])); Here's the part that summons and announces when the monster gets killed: monster .mvp_mapa$,0,0,getmonsterinfo(.@idsalamvpmvp[.idsalamvp],0),.@idsalamvpmvp[.idsalamvp],.mvp_quant,"salamb::OnDeadMVP"; end; OnDeadMVP: areaannounce .mvp_mapa$,20,20,280,280, "O Mini-Chefe "+getmonsterinfo(.@idsalamvpmvp[.idsalamvp],0)+" foi MORTO pel"+(Sex?"o":"a")+" guerreir"+(Sex?"o":"a")+" "+strcharinfo(0)+"!",bc_map; ps: I don't see why it wouldn't work with local variables but it may be relevant to mention that i have a second script just like this one, using global variables and working. I had to use local variables so i have two independent scripts. I tried to find what could be wrong with the script but i didn't manage to fix it. Any help will be appreciated.
×
×
  • Create New...