Dolphin86 Posted April 5, 2020 Group: Members Topic Count: 280 Topics Per Day: 0.06 Content Count: 757 Reputation: 17 Joined: 01/07/12 Last Seen: December 18, 2024 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 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM 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: .@item_id = getarg(0, 0); if (.@item_id) { .@countitem = countitem(.@item_id); delitem .@item_id, .@countitem; makeitem .@item_id, .@countitem, @map$, @x, @y; } return; } prontera,1,1,4 script Sample 4_F_KAFRA1,{ if (countitem(47003)) { .@rate = rand(100); if (.@rate < 5) { .@item_id = 969; } else if (.@rate < 25) { .@item_id = 724; } else if (.@rate < 75) { .@item_id = 7049; } else { // nothing } if (.@item_id) { getitem .@item_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 Group: Members Topic Count: 280 Topics Per Day: 0.06 Content Count: 757 Reputation: 17 Joined: 01/07/12 Last Seen: December 18, 2024 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...
Question
Dolphin86
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
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.