Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/31/20 in all areas

  1. You have to add up something like this OnPCKillEvent: .@self = getcharid(3); if (killedrid == .@self) end; attachrid killedrid; .@class = Class; attachrid .@self; .@index = inarray(class_arr, .@class); if (.@index == -1) { .@size = getarraysize(class_arr); class_arr[.@size] = .@class; count_arr[.@size] = 1; } else cleararray count_arr[.@index], count_arr[.@index] + 1, 1; end; and then you can create npc to fetch all the details like below .@size = getarraysize(class_arr); if (!.@size) mes "No data"; else { mes "Your kills per class"; for (.@i = 0; .@i < .@size; .@i++) mes "> Job:" + jobname(class_arr[.@i]) + " | Kill Count:" + count_arr[.@i]; } close;
    1 point
  2. what do you mean by job id ? you want the job id of the player who is killed ? you can do readparam() OnPCKillEvent: debugmes "" + readparam(Class,convertpcinfo(killedrid,CPC_CHAR)); end; readparam(Class,convertpcinfo(killedrid,CPC_CHAR)) will return the class of the killed if it's a player ofc , hint OnPCKillEvent
    1 point
  3. My question is if you can combine the item random option with the pillar drop effect, like this here. Example: Item with only 1 random option bonus create a white pillar drop effect. ------------------------------------------------------------------------------------------------------------------ Item with 5 random option bonus create a orange pillar drop effect. Thanks in advance.
    1 point
  4. Schwarzwald Kafra!! Just 3 more to go! Hope you like it!! EDIT: Jasmine, the kafra from Geffen. EDIT 2: Added Leilah, the kafra from Aldebaran. EDIT 3: Added Zonda.
    1 point
  5. Try below // if you want to use card trader where you can put multiple cards if u have them in inventory then use below prontera,150,150,6 script Sample 100,{ getinventorylist; for (.@i = 0; .@i < @inventorylist_count; .@i++) { if (getiteminfo(@inventorylist_id[.@i], 2) == 6) { .@menu$ = .@menu$ + getitemname(@inventorylist_id[.@i]) + ":"; .@cards[getarraysize(.@cards)] = @inventorylist_id[.@i]; .@qt[getarraysize(.@qt)] = @inventorylist_amount[.@i]; } } .@i = 0; mes "Please select 3 cards..."; while (.@i < 3) { if (getarraysize(.@c)) { mes "> 1x " + getitemname(.@c[.@j]); .@j++; } .@s = select(.@menu$) - 1; .@c[getarraysize(.@c)] = .@cards[.@s]; cleararray .@qt[.@s], (.@qt[.@s] < 1 ? 0 : (.@qt[.@s]-1)), 1; if (!.@qt[.@s]) .@menu$ = replacestr(.@menu$, getitemname(.@cards[.@s]), ""); .@i++; } .@size = getarraysize(.@c); mes "> 1x " + getitemname(.@c[.@j]); next; mes "Are you sure you want to trade these cards?"; if (select("~ Yes:~ No") & 2) end; for (.@i = 0; .@i < .@size; .@i++) delitem .@c[.@i], 1; getitem rand(4001,4699), 1; close; } // if you want to use distinct card trader, means even if u have 2x poring card you can only trade 1 of them use below prontera,153,153,6 script Sample1 100,{ getinventorylist; for (.@i = 0; .@i < @inventorylist_count; .@i++) { if (getiteminfo(@inventorylist_id[.@i], 2) == 6) { .@cards[getarraysize(.@cards)] = @inventorylist_id[.@i]; .@menu$ = .@menu$ + getitemname(@inventorylist_id[.@i]) + ":"; } } .@i = 0; mes "Please select 3 cards..."; while (.@i < 3) { if (getarraysize(.@c)) { mes "> 1x " + getitemname(.@c[.@j]); .@j++; } .@s = select(.@menu$) - 1; .@c[getarraysize(.@c)] = .@cards[.@s]; .@menu$ = replacestr(.@menu$, getitemname(.@cards[.@s]), ""); .@i++; } .@size = getarraysize(.@c); mes "> 1x " + getitemname(.@c[.@j]); next; mes "Are you sure you want to trade these cards?"; for (.@i = 0; .@i < .@size; .@i++) mes "> " + getitemname(.@c[.@i]); if (select("~ Yes:~ No") & 2) end; for (.@i = 0; .@i < .@size; .@i++) delitem .@c[.@i], 1; getitem rand(4001,4699), 1; close; }
    1 point
  6. Just open : luafiles514\lua files\spreditinfo\2dlayerdir_f.lub and remove [SPRITE_ROBE_IDs.ROBE_WINGS] = LAYER_BIG, [SPRITE_ROBE_IDs.ROBE_BAG_OF_ADVENTURER] = LAYER_SMALL, [SPRITE_ROBE_IDs.ROBE_WINGS_OF_FALLEN_ANGEL] = LAYER_BIG, [SPRITE_ROBE_IDs.ROBE_AMISTR_BAG] = LAYER_SMALL, [SPRITE_ROBE_IDs.ROBE_Love_Dad_Wings_2012] = LAYER_BIG, [SPRITE_ROBE_IDs.ROBE_KIRIN_WING] = LAYER_BIG, [SPRITE_ROBE_IDs.ROBE_Ribbon_Piamat] = LAYER_SMALL it will fix your problem.
    1 point
  7. Version 3.0

    1928 downloads

    This Script allow users to setup a Chained Quest in a simplest way. The NPC will reward the player 1 item that specified in the script for every part of the Quests he/she finished. Limit Of Quest Required Items can add to max of 60+ . Configuration : Case <Number>: ChainedQuest( <RewardID>,<Amount>, <Zeny>, <RequiredItem>,<Amount>,......,<RequiredItem>,<Amount> ); Case <X> where X refer to part of the Quest.
    Free
    1 point
×
×
  • Create New...