jpnazar Posted March 31, 2013 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 170 Reputation: 1 Joined: 03/26/13 Last Seen: July 29, 2018 Share Posted March 31, 2013 how to add warps? new_5-2 45 172 going to new_5-2 76 106 Quote Link to comment Share on other sites More sharing options...
Emistry Posted March 31, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Yesterday at 05:32 PM Share Posted March 31, 2013 find the NPC in this folder trunk/npc/re/warps/ and edit the location. Basic_Scripting Quote Link to comment Share on other sites More sharing options...
ParSalian Posted March 31, 2013 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 35 Reputation: 1 Joined: 02/04/13 Last Seen: May 20, 2014 Share Posted March 31, 2013 (edited) where can i found the syntax explanation for this ? PS: Sorry i found it .but i must try to understand this syntax prt_fild00,165,18,0 warp prtf01 9,3,prt_fild04,158,384 Edited March 31, 2013 by ParSalian Quote Link to comment Share on other sites More sharing options...
jpnazar Posted March 31, 2013 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 170 Reputation: 1 Joined: 03/26/13 Last Seen: July 29, 2018 Author Share Posted March 31, 2013 (edited) thx more question sir how to make my bossnia need a item example proof of donation not zenny //===== rAthena Script ======================================= //= Bossnia Warp NPCs //===== By: ================================================== //= Masao //===== Current Version: ===================================== //= 1.1 //===== Compatible With: ===================================== //= rAthena //===== Description: ========================================= //= Bossnia Warp NPC's. //===== Additional Comments: ================================= //= 1.0 Converted from the official script. //= 1.1 Optimized. [Euphy] //============================================================ new_5-4,100,25,6 script Bossnia Staff::bsw 908,{ mes "[Riss]"; mes "Hello?"; mes "I found some beautiful places"; mes "while I travelled all over the world."; mes "I am an adventurer."; mes "Haha~"; next; mes "[Riss]"; mes "What? My name is..."; mes "'Bossnia Staff'?? No no..."; mes "Well, my name is not so important."; mes "Sometimes you should be generous."; mes "No time for considering that kind of small stuff"; mes "when you have to concentrate on more important things."; next; mes "[Riss]"; mes "Hum... anyway I want to say... something.."; mes "While I was travelling through some places,"; mes "I found a really fearful place."; next; mes "[Riss]"; mes "Most of the time when you come to a place,"; mes "there is one strong and fearful monster."; mes "Isn't it?"; next; mes "[Riss]"; mes "But... but... in there..."; mes "There are lots of fearful and strong monsters in there..."; mes "That was really frightful."; next; mes "[Riss]"; mes "If I had reacted a bit later... a few seconds..."; mes "I might have been killed."; next; mes "[Riss]"; mes "What?"; mes "You want to go in there?"; mes "Oh~ Boy~ you didn't get me."; mes "In there......."; next; mes "[Riss]"; mes "Uh... you already know?"; mes "Although you know the place, you want to go in..."; mes "Good, I will send you there."; mes "But after you went there, don't hold"; mes "a grudge against me. Also it costs 5,000 zeny."; next; if (Zeny > 4999) { mes "[Riss]"; mes "Would you really like to take the challenge??"; mes "Ok, just choose the course."; next; set .@i, select("First","Second","Third","Fourth"); mes "[Riss]"; mes "Take care, boy~"; mes "Don't hold a grudge against me."; close2; set Zeny, Zeny - 5000; warp "bossnia_0"+.@i,rand(202,204),rand(202,204); end; } mes "[Riss]"; mes "You don't have enough money..."; mes "Come back when you have at least 5,000 zeny."; close; } Edited March 31, 2013 by Capuche Use Code for long content Quote Link to comment Share on other sites More sharing options...
Emistry Posted March 31, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Yesterday at 05:32 PM Share Posted March 31, 2013 warp portal explaination trunk/doc/script_commands.txt ** Define a warp point <from map name>,<fromX>,<fromY>,<facing>%TAB%warp%TAB%<warp name>%TAB%<spanx>,<spany>,<to map name>,<toX>,<toY> This will define a warp NPC that will warp a player between maps, and while most arguments of that are obvious, some deserve special mention. SpanX and SpanY will make the warp sensitive to a character who didn't step directly on it, but walked into a zone which is centered on the warp from coordinates and is SpanX in each direction across the X axis and SpanY in each direction across the Y axis. Warp NPC objects also have a name, because you can use it to refer to them later with 'enablenpc'/'disablenpc' Facing of a warp object is irrelevant, it is not used in the code and all current scripts have a zero in there. change if (Zeny > 4999) { mes "[Riss]"; mes "Would you really like to take the challenge??"; mes "Ok, just choose the course."; next; set .@i, select("First","Second","Third","Fourth"); mes "[Riss]"; mes "Take care, boy~"; mes "Don't hold a grudge against me."; close2; set Zeny, Zeny - 5000; warp "bossnia_0"+.@i,rand(202,204),rand(202,204); end; } to if ( countitem(7179) >= 1 ) { mes "[Riss]"; mes "Would you really like to take the challenge??"; mes "Ok, just choose the course."; next; set .@i, select("First","Second","Third","Fourth"); mes "[Riss]"; mes "Take care, boy~"; mes "Don't hold a grudge against me."; close2; delitem 7179,1; warp "bossnia_0"+.@i,rand(202,204),rand(202,204); end; } Quote Link to comment Share on other sites More sharing options...
jpnazar Posted March 31, 2013 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 170 Reputation: 1 Joined: 03/26/13 Last Seen: July 29, 2018 Author Share Posted March 31, 2013 Thanks sir Quote Link to comment Share on other sites More sharing options...
jpnazar Posted March 31, 2013 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 170 Reputation: 1 Joined: 03/26/13 Last Seen: July 29, 2018 Author Share Posted March 31, 2013 (edited) another npc how to make this automatic event every 1hr&15min with broadcasting the event is starting within 3minutes turbo_room,128,97,5 script Counting Game 437,{mes "This is a Monsters Counting Game";mes "I will summon some Monsters here, and you have to count the Correct Amount of Monsters i summoned.";mes "^FF0000Only Count for the Monsters i mentioned^000000";next;switch( select( "Information", ( getgmlevel() < .GMLevel || .Event )?"":"^FF0000[GM]^000000 Start Game", ( getgmlevel() < .GMLevel || !.Event )?"":"^FF0000[GM]^000000 End Game" )){ Case 1: mes "When the Event Start, i will summon some Monsters at a small area, and players have to count the amount of the flowers."; mes "Whoever tell me the correct amount of Monsters i mentioned, he/she win the game."; break; Case 2: mes "Event will begin right now."; close2; donpcevent strnpcinfo(0)+"::OnStartGame"; end;Case 3: set .Event,0; set .Round,0; deletepset 1; delwaitingroom; set .Winner[0],0; set .Winner[1],0; npctalk "Counting Game Cancelled."; killmonster .Map$,"All"; mes "Game Cancelled."; break;}close;OnSpammed: set @Spam,0; end; iSpam: if( getgmlevel() > 90 ) end; set @Spam,@Spam + 1; if( @Spam >= .Spam ){ // 3 Continuos Answer will trigger... set @SpamDelay,gettimetick(2) + .Spam; dispbottom "SPAM Detected, your answer within next "+.Spam+" Seconds will be Ignored."; } deltimer strnpcinfo(0)+"::OnSpammed"; addtimer ( .Spam * 1000 ),strnpcinfo(0)+"::OnSpammed"; end; iRight:set @Spam,0;deltimer strnpcinfo(0)+"::OnSpammed";if( !.Event ){ message strcharinfo(0),"Sorry, there is no Event right now.";}else if( @SpamDelay > gettimetick(2) ){ message strcharinfo(0),"SPAM Protection : Remain "+( @SpamDelay - gettimetick(2) )+" seconds.";}else if( getcharid(0) == .Winner[0] && gettimetick(2) < .Winner[1] ){ message strcharinfo(0),"Sorry, Winner Time Penalty : Remain "+( .Winner[1] - gettimetick(2) )+" seconds.";}else{ delwaitingroom; set .Event,0; set .Round,.Round - 1; set .Winner[0],getcharid(0); set .Winner[1],gettimetick(2) + .Delay; npctalk "[ "+strcharinfo(0)+" ] , You're Correct."; killmonster .Map$,"All"; deletepset 1; if( getarraysize( .Reward$ ) > 1 ) for( set .@i,0; .@i < getarraysize( .Reward$ ) - 1; set .@i,.@i + 2 ) if( getitemname( atoi( .Reward$[.@i] ) ) == "null" ){ set getd( .Reward$[.@i] ),getd( .Reward$[.@i] ) + atoi( .Reward$[.@i+1] ); dispbottom "Reward : "+.Reward$[.@i]+" + "+.Reward$[.@i+1]; }else{ getitem atoi( .Reward$[.@i] ),atoi( .Reward$[.@i+1] ); dispbottom "Reward : "+getitemname( atoi( .Reward$[.@i] ) )+" x "+.Reward$[.@i+1]; }if( .Round ) donpcevent strnpcinfo(0)+"::OnStartGame";}end;OnInit:// Min. GM Level to access GM Panelset .GMLevel,80;// Game Locationset .Map$,"turbo_room";// Monster ID Listssetarray .MonsterList[0],1084,1085;// Winners Answer Delay ( Not advised for High Value )set .Delay,10;// Spam Prevention ( Not advised for High Value )set .Spam,3;// How many roundsset .MaxRound,10;// Area Coordination <x1>,<y1>,<x2>,<y2>;setarray .Coordinate,125,88,131,95;// Rewards ...setarray .Reward$[0], "Zeny","5000000", "7227","10", "7539","100";end;OnMinute30:for( set .@i,60; .@i > 0; set .@i,.@i - 10 ){ announce "Flower Counting Game : start within "+.@i+" Seconds in "+.Map$,0; sleep 10000;} OnStartGame: if( !.Round ) set .Round,.MaxRound; announce "Counting Game has started in "+.Map$,0; deletearray .MobCount[0],getarraysize( .MobCount ); for( set .@x,.Coordinate[0]; .@x <= .Coordinate[2]; set .@x,.@x + 1 ) for( set .@y,.Coordinate[1]; .@y <= .Coordinate[3]; set .@y,.@y + 1 ){ set .@Summon,rand( getarraysize( .MonsterList ) ); monster .Map$,.@x,.@y,"Count Me",.MonsterList[.@Summon],1,strnpcinfo(0)+"::OnKilled"; set .MobCount[.@Summon],.MobCount[.@Summon] + 1; sleep2 1; } set .@Target,rand( getarraysize( .MonsterList ) ); deletepset 1; defpattern 1, "([^:]+): (\\|\\d{2})?"+.MobCount[.@Target]+ ".$", "iRight"; // defpattern 1,"([^:]+): "+.MobCount[.@Target], "iRight"; defpattern 1,"([^:]+):.*.*", "iSpam"; activatepset 1; delwaitingroom; waitingroom getmonsterinfo( .MonsterList[.@Target],0 ),0; npctalk "Count for the Targeted Monster's Amount to Win the Game."; set .Event,1; end; OnKilled: mes "You will be punished upon killing these Monsters and interupt the Game."; set @Spam,30; close2; npctalk "Round Restarted due to interruption."; donpcevent strnpcinfo(0)+"::OnStartGame"; end;} how to make this auto event 1hr&15minutes with broadcast the event is starting within 3minutes? Edited April 1, 2013 by Emistry Use Code for long content Quote Link to comment Share on other sites More sharing options...
jpnazar Posted April 1, 2013 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 170 Reputation: 1 Joined: 03/26/13 Last Seen: July 29, 2018 Author Share Posted April 1, 2013 BUMP* Quote Link to comment Share on other sites More sharing options...
Emistry Posted April 1, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Yesterday at 05:32 PM Share Posted April 1, 2013 change OnMinute30: to OnClock0130: OnClock0300: // etc Quote Link to comment Share on other sites More sharing options...
Question
jpnazar
how to add warps?
new_5-2 45 172 going to new_5-2 76 106
Link to comment
Share on other sites
8 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.