Jump to content

angelwarrior

Members
  • Posts

    29
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

966 profile views

angelwarrior's Achievements

Poring

Poring (1/15)

0

Reputation

1

Community Answers

  1. Hi guys, I can't enable an instance npc with those scripts. My idea is when you kill a mvp(1296) the warp become enabled and you can pass to next level. But when i kills him the warp not appear. I use 2 scripts: To create instance: prontera,150,150,0 script Instanced Prontera#a 101,{ set .@instance$, "Primer Jefe"; if (instance_id()) { if (select("Enter Instance.:Cancel.") == 2) end; if (instance_enter(.@instance$) != 0) { mes "Instance entrance ^FF0000failed^000000."; close; } } else { if (select("Create Instance.:Cancel.") == 2) end; if (instance_create(.@instance$) < 0) { mes "Instance creation ^FF0000failed^000000."; close; } mes "Instance created."; close2; instance_enter(.@instance$); .@map$ = instance_mapname("pvp_n_1-3"); .@label$ = instance_npcname(strnpcinfo(0))+"::OnMyMobDead"; monster .@map$,0,0,"--ja--",1296,1,.@label$,2; } end; OnMyMobDead: enablenpc instance_npcname("warpmvp1"); end; OnInstanceInit: disablenpc instance_npcname(strnpcinfo(0)); disablenpc instance_npcname("#warpmvp1", instance_id()); end; } to warp appear when i kill mvp (npc is in map): pvp_n_1-3,83,116,5 script PoringSpawner1 139,{ end; OnNPCKillEvent: if (killedrid == 1296) { /* - if player kill several monsters in few seconds, spam of enable/disable Set a variable when timer start then clear when end */ getmapxy(.@mapa$,.@x,.@y,0); if (.@mapa$ == "pvp_n_1-3") { enablenpc instance_npcname("warpmvp1"); end; } } end;// <- add end to stop the script here otherwise if players kill another monster than 1296 or 1296 on another map than pvp_n_1-3, the warp is disabled .@map$ = instance_mapname("pvp_n_1-3"); .@label$ = instance_npcname(strnpcinfo(0))+"::OnMyMobDead"; monster .@map$,0,0,"--ja--",1296,1,.@label$,2; } end; OnMyMobDead: enablenpc instance_npcname("warpmvp1"); end; //Disable the warp when the server starts. OnNPCKillEvent: enablenpc instance_npcname("warpmvp1"); end; OnInstanceInit: disablenpc instance_npcname("warpmvp1"); end; } //My Example //Warp NPC pvp_n_1-3,100,140,0 script warpmvp1 45,2,2,{ warp "piso1",178,223; end; } Thanks for help me!
  2. Sorry for doble post but i can't disable npc with this. My script is : prontera,150,150,0 script Instanced Prontera#a 101,{ set .@instance$, "Primer Jefe"; if (instance_id()) { if (select("Enter Instance.:Cancel.") == 2) end; if (instance_enter(.@instance$) != 0) { mes "Instance entrance ^FF0000failed^000000."; close; } } else { if (select("Create Instance.:Cancel.") == 2) end; if (instance_create(.@instance$) < 0) { mes "Instance creation ^FF0000failed^000000."; close; } mes "Instance created."; close2; instance_enter(.@instance$); .@map$ = instance_mapname("pvp_n_1-3"); monster .@map$,0,0,"--ja--",1296,1,0,2; } end; OnInstanceInit: disablenpc instance_npcname(strnpcinfo(0)); disablenpc instance_npcname("warpmvp1"); end; } pvp_n_1-3,100,140,0 script warpmvp1 45,2,2,{ warp "piso1",178,223; end; } EDIT: I put the script inside a npc in instance map and i can solved it. But i have another problem but i go to post it
  3. okay, inside the same script. Thanks!
  4. ok, and if i want to put a boss in this map? where i should write the code line ?
  5. I have a problem. When i enter to my instance all npc are enable and there are no mobs. I have a warp portal inside that map and i dont want it is enabled because it enabled when players kill mvp from this map. How i can disable it? prontera,150,150,0 script Instanced Prontera#a 101,{ set .@instance$, "Primer Jefe"; if (instance_id()) { if (select("Enter Instance.:Cancel.") == 2) end; if (instance_enter(.@instance$) != 0) { mes "Instance entrance ^FF0000failed^000000."; close; } } else { if (select("Create Instance.:Cancel.") == 2) end; if (instance_create(.@instance$) < 0) { mes "Instance creation ^FF0000failed^000000."; close; } mes "Instance created."; close2; instance_enter(.@instance$); } end; OnInstanceInit: disablenpc instance_npcname(strnpcinfo(0)); end; }
  6. Hi guys i have a script that is not working okay. Yesterday it worked fine, but today when i kill monster, the warp dissapear pass 10 seconds or sometimes 3 seconds. pvp_n_1-3,83,116,5 script PoringSpawner1 139,{ end; OnNPCKillEvent: if (killedrid == 1296) { getmapxy(.@mapa$,.@x,.@y,0); if (.@mapa$ == "pvp_n_1-3") { enablenpc "PoringWarp1"; sleep 120000; disablenpc "PoringWarp1"; end; } } //Disable the warp when the server starts. OnInit: disablenpc "PoringWarp1"; end; } //My Example //Warp NPC pvp_n_1-3,100,140,0 warp PoringWarp1 1,1,aldebaran,143,57
  7. I don't know how i can open mapcache? mapcache.exe? and how i can edit there?
  8. I kill it monster and it Doesn't work Map doesn't says nothing Thank you . It work for me too. But i do not know that you can put a " ; after a command and other command with ; before. You optimized the spaces o.o
  9. mmm I try change that close; for end; but nothing happend : - script cofresdeltesoro -1,0,5{ OnNPCKillEvent: if (killedrid == 1732) { set var, rand(1,10); switch (var) { case 1: getitem 909,1; end; case 2: getitem 7126,1; end; case 3: getitem 7300,1; end; case 4: getitem 909,1; end; case 5: getitem 2610,1; end; case 6: getitem 728,1; end; case 7: getitem 909,1; end; case 8: getitem 909,1; end; case 9: getitem 7126,1; end; case 10: atcommand "@monster 1474"; end; } break; } // End if end; } Can you make the modification that you mention please? or teach me with an example =)
  10. I want to put a type of mob in moc_prydb1(thief guild) but i can't. I try put that in other files(moc pyramid dungeon) but nothing happend. I make reload, reset server, etc.. What happend? Help me please.
  11. Hi guys, I am making a script called treasurechest is simple you kill a chest(woechest) and you can get an item or spawn a mimic. But because i am noob scripter i don't know why it doesn't works. - script cofresdeltesoro -1,0,5{ OnNPCKillEvent: if (killedrid == 1732) { set var, rand(1,10); switch (var) { case 1: getitem 909,1; close; case 2: getitem 7126,1; close; case 3: getitem 7300,1; close; case 4: getitem 909,1; close; case 5: getitem 2610,1; close; case 6: getitem 728,1; close; case 7: getitem 909,1; close; case 8: getitem 909,1; close; case 9: getitem 7126,1; close; case 10: atcommand "@monster 1474"; close; } break; } // End if end; } Where is error? or how i can do it? Console map doesn´t says nothing The script should be global cause treasure chests will are in many maps.
  12. Hi guys, I want delete this npc but I can't find it. I look in google and not appear . I have no idea in what file is. Help me please. Thank you! https://gyazo.com/6cfbbdc6acb58cef931f02436b5c99fc EDIT: I Find it . She is in lightalzen quest ....lol close post please.
×
×
  • Create New...