Dolphin86 Posted April 5, 2020 Share Posted April 5, 2020 (edited) About the NPC: 1. Player will just click the npc 2. NPC will check if player have the item ( ID 47003 ) to trigger the NPC, if player dont have the item nothing will happen 3. In which case player have the require item NPC will give random chance -50% gain stone ( ID 7049 ) -20% gain Cursed Ruby ( ID 724 ) -5% gain Gold ( ID 969 ) 4. Once player got an item from this NPC it will disappear 5. This NPC will auto spawn in the same map 6. Total spwan roughly around 80 ish with random location within the specific map 7. also in which case player get killed ( PvP ) all of his item which is the stone, cursed ruby and gold inside his/her inventory are all drop Thanks Edited April 5, 2020 by dolphincute Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted April 6, 2020 Share Posted April 6, 2020 - script sample_main -1,{ OnPCDieEvent: if (getmapflag(strnpcinfo(3), mf_pvp)) { getmapxy(@map$, @x, @y, BL_PC); callsub(L_DropItem, 969); callsub(L_DropItem, 724); callsub(L_DropItem, 7049); } end; L_DropItem: [email protected]_id = getarg(0, 0); if ([email protected]_id) { [email protected] = countitem([email protected]_id); delitem [email protected]_id, [email protected]; makeitem [email protected]_id, [email protected], @map$, @x, @y; } return; } prontera,1,1,4 script Sample 4_F_KAFRA1,{ if (countitem(47003)) { [email protected] = rand(100); if ([email protected] < 5) { [email protected]_id = 969; } else if ([email protected] < 25) { [email protected]_id = 724; } else if ([email protected] < 75) { [email protected]_id = 7049; } else { // nothing } if ([email protected]_id) { getitem [email protected]_id, 1; movenpc strnpcinfo(3), rand(300), rand(300), rand(8); } } end; } prontera,1,1,4 duplicate(Sample) Sample#1 4_F_KAFRA1 prontera,1,1,4 duplicate(Sample) Sample#2 4_F_KAFRA1 prontera,1,1,4 duplicate(Sample) Sample#3 4_F_KAFRA1 Quote Link to comment Share on other sites More sharing options...
0 Dolphin86 Posted April 7, 2020 Author Share Posted April 7, 2020 (edited) [Warning]: npc_parsename: Duplicate unique name in file 'npc/custom/mine.txt', line'71'. Renaming 'Crystal#3' to '1_920_193_154'. [Debug]: this npc: display name 'Crystal#3' unique name 'Crystal#3' map=atlantis, x=193, y=154 [Debug]: other npc in 'npc/custom/mine.txt' : display name 'Crystal#3' unique name 'Crystal#3' map=atlantis, x=178, y=49 [Warning]: npc_parsename: Duplicate unique name in file 'npc/custom/mine.txt', line'72'. Renaming 'Crystal#3' to '1_920_193_233'. [Debug]: this npc: display name 'Crystal#3' unique name 'Crystal#3' map=atlantis, x=193, y=233 [Debug]: other npc in 'npc/custom/mine.txt' : display name 'Crystal#3' unique name 'Crystal#3' map=atlantis, x=178, y=49 [Warning]: npc_parsename: Duplicate unique name in file 'npc/custom/mine.txt', line'73'. Renaming 'Crystal#3' to '1_920_136_162'. [Debug]: this npc: display name 'Crystal#3' unique name 'Crystal#3' map=atlantis, x=136, y=162 [Debug]: other npc in 'npc/custom/mine.txt' : display name 'Crystal#3' unique name 'Crystal#3' map=atlantis, x=178, y=49 [Warning]: npc_parsename: Duplicate unique name in file 'npc/custom/mine.txt', line'74'. Renaming 'Crystal#3' to '1_920_69_248'. [Debug]: this npc: display name 'Crystal#3' unique name 'Crystal#3' map=atlantis, x=69, y=248 [Debug]: other npc in 'npc/custom/mine.txt' : display name 'Crystal#3' unique name 'Crystal#3' map=atlantis, x=178, y=49 [Warning]: npc_parsename: Duplicate unique name in file 'npc/custom/mine.txt', line'75'. Renaming 'Crystal#3' to '1_920_65_176'. [Debug]: this npc: display name 'Crystal#3' unique name 'Crystal#3' map=atlantis, x=65, y=176 [Debug]: other npc in 'npc/custom/mine.txt' : display name 'Crystal#3' unique name 'Crystal#3' map=atlantis, x=178, y=49 [Warning]: npc_parsename: Duplicate unique name in file 'npc/custom/mine.txt', line'76'. Renaming 'Crystal#3' to '1_920_100_73'. [Debug]: this npc: display name 'Crystal#3' unique name 'Crystal#3' map=atlantis, x=100, y=73 [Debug]: other npc in 'npc/custom/mine.txt' : display name 'Crystal#3' unique name 'Crystal#3' map=atlantis, x=178, y=49 [Warning]: npc_parsename: Duplicate unique name in file 'npc/custom/mine.txt', line'77'. Renaming 'Crystal#3' to '1_920_59_150'. [Debug]: this npc: display name 'Crystal#3' unique name 'Crystal#3' map=atlantis, x=59, y=150 [Debug]: other npc in 'npc/custom/mine.txt' : display name 'Crystal#3' unique name 'Crystal#3' map=atlantis, x=178, y=49 [Warning]: npc_parsename: Duplicate unique name in file 'npc/custom/mine.txt', line'78'. Renaming 'Crystal#3' to '1_920_231_153'. [Debug]: this npc: display name 'Crystal#3' unique name 'Crystal#3' map=atlantis, x=231, y=153 [Debug]: other npc in 'npc/custom/mine.txt' : display name 'Crystal#3' unique name 'Crystal#3' map=atlantis, x=178, y=49 [Warning]: npc_parsename: Duplicate unique name in file 'npc/custom/mine.txt', line'79'. Renaming 'Crystal#3' to '1_920_110_89'. [Debug]: this npc: display name 'Crystal#3' unique name 'Crystal#3' map=atlantis, x=110, y=89 [Debug]: other npc in 'npc/custom/mine.txt' : display name 'Crystal#3' unique name 'Crystal#3' map=atlantis, x=178, y=49 [Warning]: npc_parsename: Duplicate unique name in file 'npc/custom/mine.txt', line'80'. Renaming 'Crystal#3' to '1_920_120_195'. [Debug]: this npc: display name 'Crystal#3' unique name 'Crystal#3' map=atlantis, x=120, y=195 [Debug]: other npc in 'npc/custom/mine.txt' : display name 'Crystal#3' unique name 'Crystal#3' map=atlantis, x=178, y=49 [Warning]: npc_parsename: Duplicate unique name in file 'npc/custom/mine.txt', line'81'. Renaming 'Crystal#3' to '1_920_55_251'. [Debug]: this npc: display name 'Crystal#3' unique name 'Crystal#3' map=atlantis, x=55, y=251 [Debug]: other npc in 'npc/custom/mine.txt' : display name 'Crystal#3' unique name 'Crystal#3' map=atlantis, x=178, y=49 [Warning]: npc_parsename: Duplicate unique name in file 'npc/custom/mine.txt', line'82'. Renaming 'Crystal#3' to '1_920_26_209'. [Debug]: this npc: display name 'Crystal#3' unique name 'Crystal#3' map=atlantis, x=26, y=209 [Debug]: other npc in 'npc/custom/mine.txt' : display name 'Crystal#3' unique name 'Crystal#3' map=atlantis, x=178, y=49 [Warning]: npc_parsename: Duplicate unique name in file 'npc/custom/mine.txt', line'83'. Renaming 'Crystal#3' to '1_920_26_179'. [Debug]: this npc: display name 'Crystal#3' unique name 'Crystal#3' map=atlantis, x=26, y=179 [Debug]: other npc in 'npc/custom/mine.txt' : display name 'Crystal#3' unique name 'Crystal#3' map=atlantis, x=178, y=49 nvm found the problem it was the duplicate names Edited April 7, 2020 by dolphincute Quote Link to comment Share on other sites More sharing options...
About the NPC:
1. Player will just click the npc
2. NPC will check if player have the item ( ID 47003 ) to trigger the NPC, if player dont have the item nothing will happen
3. In which case player have the require item NPC will give random chance
-50% gain stone ( ID 7049 )
-20% gain Cursed Ruby ( ID 724 )
-5% gain Gold ( ID 969 )
4. Once player got an item from this NPC it will disappear
5. This NPC will auto spawn in the same map
6. Total spwan roughly around 80 ish with random location within the specific map
7. also in which case player get killed ( PvP ) all of his item which is the stone, cursed ruby and gold inside his/her inventory are all drop
Thanks
Edited by dolphincuteLink to comment
Share on other sites