Hatake Kakashi Posted March 27, 2012 Group: Members Topic Count: 254 Topics Per Day: 0.05 Content Count: 825 Reputation: 3 Joined: 11/14/11 Last Seen: June 25, 2021 Share Posted March 27, 2012 (edited) i have error in my 2 scripts. here's the script. questnpc2.txt turbo_room,117,89,4 script Quest NPC 2 911,{ // ==Change coords, Name of NPC and Sprite== set .@npc$,"[Mixis]"; // ==Change to name of npc== mes .@npc$; // ==You can change the dialouge if you want== mes "Pssst!"; mes "Hey! Why are you carrying so many"; mes "items?"; mes "You mind sharing them with me?"; next; menu "Wolf Flute",l_wbw,"No Thanks!",l_nothanks; l_wbw: mes .@npc$; mes "^4EE2ECWolf Flute^000000"; mes "150 Brigan,"; mes "20 Soft Feather,"; mes "10 Gold"; next; if(countitem(7054) <150) goto l_noitem; if(countitem(7063) <20) goto l_noitem; if(countitem(969) <10) goto l_noitem; delitem 7054,150; delitem 7063,20;; delitem 969,200; getitem 6124,1; // IMPORTANT: Change this to the ItemID of the item you're giving and the amount. mes .@npc$; mes "Congratulations! You have earned my ^4EE2ECWolf Flute^000000!"; next; mes .@npc$; mes "Goodbye!"; close; l_noitem: mes .@npc$; mes "Please come back when you have my required items."; close; l_nothanks: mes .@npc$; mes "Alright, bye for now!"; close; } } } } } my PvProom //===== eAthena Script ======================================= //= PvP //===== By: ================================================== //= Destinee~ //===== Description: ========================================= //= A basic PVP script. //===== Additional Comments: ================================= //= Dont copyright this and claiming that you've made this. Use it only for your own server. //============================================================ prontera,156,175,6 script PvP Arena 413,{ mes "[PvP Warper]"; mes "Do you want to warp to the PvP Arena and fight your enemies?"; menu "Sure, Bring it on!",L_Yes,"Nah, I'm not ready yet.",L_No; L_Yes: mes "[PvP Warper]"; mes "Which PvP Arena do you want to enter?"; menu "PvP Arena [" + getmapusers("pvp_y_1-2.gat") + " / 20]",L1, "GvG Arena [" + getmapusers("guild_vs2.gat") + " / 20]",L2, "Nightmare Mode [" + getmapusers("guild_vs4.gat") + " / 20]",L3; L1: if (getmapusers("pvp_y_1-2.gat") > 19) goto Lsorry; warp "pvp_y_1-2",0,0; announce "[ "+strcharinfo(0)+" ] is warped into PVP Arena.",0; close; L2: if (getmapusers("guild_vs2.gat") > 19) goto Lsorry; warp "guild_vs2",0,0; announce "[ "+strcharinfo(0)+" ] is warped into GVG Arena.",0; close; close; L3: if (getmapusers("guild_vs4.gat") > 19) goto Lsorry; warp "guild_vs4",0,0; announce "[ "+strcharinfo(0)+" ] is warped into Nightmare Mode.",0; close; close; Lsorry: mes "[PvP Warper]"; mes "Sorry but this PvP Arena is full, maybe you could try another one."; close; L_No: close; OnInit: waitingroom "PvP Arena",0; sleep 1000; } } hugel,93,152,3 duplicate(PvP Warper) PvP Warper#2 413 lighthalzen,154,94,3 duplicate(PvP Warper) PvP Warper#3 413 guild_vs2 mapflag noteleport guild_vs2 mapflag nowarp guild_vs2 mapflag noreturn guild_vs4 mapflag noteleport guild_vs4 mapflag nowarp guild_vs4 mapflag noreturn Edited March 27, 2012 by Hatake Kakashi Quote Link to comment Share on other sites More sharing options...
tr0n Posted March 27, 2012 Group: Members Topic Count: 28 Topics Per Day: 0.01 Content Count: 562 Reputation: 153 Joined: 02/21/12 Last Seen: February 27, 2024 Share Posted March 27, 2012 You used too much '}' first script: turbo_room,117,89,4 script Quest NPC 2 911,{ // ==Change coords, Name of NPC and Sprite== set .@npc$,"[Mixis]"; // ==Change to name of npc== mes .@npc$; // ==You can change the dialouge if you want== mes "Pssst!"; mes "Hey! Why are you carrying so many"; mes "items?"; mes "You mind sharing them with me?"; next; menu "Wolf Flute",l_wbw,"No Thanks!",l_nothanks; l_wbw: mes .@npc$; mes "^4EE2ECWolf Flute^000000"; mes "150 Brigan,"; mes "20 Soft Feather,"; mes "10 Gold"; next; if(countitem(7054) <150) goto l_noitem; if(countitem(7063) <20) goto l_noitem; if(countitem(969) <10) goto l_noitem; delitem 7054,150; delitem 7063,20;; delitem 969,200; getitem 6124,1; // IMPORTANT: Change this to the ItemID of the item you're giving and the amount. mes .@npc$; mes "Congratulations! You have earned my ^4EE2ECWolf Flute^000000!"; next; mes .@npc$; mes "Goodbye!"; close; l_noitem: mes .@npc$; mes "Please come back when you have my required items."; close; l_nothanks: mes .@npc$; mes "Alright, bye for now!"; close; } second script: //===== eAthena Script ======================================= //= PvP //===== By: ================================================== //= Destinee~ //===== Description: ========================================= //= A basic PVP script. //===== Additional Comments: ================================= //= Dont copyright this and claiming that you've made this. Use it only for your own server. //============================================================ prontera,156,175,6 script PvP Arena 413,{ mes "[PvP Warper]"; mes "Do you want to warp to the PvP Arena and fight your enemies?"; menu "Sure, Bring it on!",L_Yes,"Nah, I'm not ready yet.",L_No; L_Yes: mes "[PvP Warper]"; mes "Which PvP Arena do you want to enter?"; menu "PvP Arena [" + getmapusers("pvp_y_1-2.gat") + " / 20]",L1, "GvG Arena [" + getmapusers("guild_vs2.gat") + " / 20]",L2, "Nightmare Mode [" + getmapusers("guild_vs4.gat") + " / 20]",L3; L1: if (getmapusers("pvp_y_1-2.gat") > 19) goto Lsorry; warp "pvp_y_1-2",0,0; announce "[ "+strcharinfo(0)+" ] is warped into PVP Arena.",0; close; L2: if (getmapusers("guild_vs2.gat") > 19) goto Lsorry; warp "guild_vs2",0,0; announce "[ "+strcharinfo(0)+" ] is warped into GVG Arena.",0; close; close; L3: if (getmapusers("guild_vs4.gat") > 19) goto Lsorry; warp "guild_vs4",0,0; announce "[ "+strcharinfo(0)+" ] is warped into Nightmare Mode.",0; close; close; Lsorry: mes "[PvP Warper]"; mes "Sorry but this PvP Arena is full, maybe you could try another one."; close; L_No: close; OnInit: waitingroom "PvP Arena",0; sleep 1000; } hugel,93,152,3 duplicate(PvP Warper) PvP Warper#2 413 lighthalzen,154,94,3 duplicate(PvP Warper) PvP Warper#3 413 guild_vs2 mapflag noteleport guild_vs2 mapflag nowarp guild_vs2 mapflag noreturn guild_vs4 mapflag noteleport guild_vs4 mapflag nowarp guild_vs4 mapflag noreturn Quote Link to comment Share on other sites More sharing options...
WhatFT Posted March 27, 2012 Group: Members Topic Count: 142 Topics Per Day: 0.03 Content Count: 511 Reputation: 7 Joined: 02/15/12 Last Seen: April 11, 2014 Share Posted March 27, 2012 I think you're problem is Tabbing? Correct me if I'm wrong XD Quote Link to comment Share on other sites More sharing options...
Nameless2you Posted March 27, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 351 Reputation: 52 Joined: 11/15/11 Last Seen: June 15, 2015 Share Posted March 27, 2012 (edited) NPC 1: [Removed Link] NPC 2: [Removed Link] I fixed all your } problems, removed some unnecessary close; added a missing 'end;', remove the 'enter' on the menu, merged the 3 if strings, edited npc name in duplicate, else you'd have gotten errors since you were duplicating the incorrect npc. Edited April 9, 2012 by Nameless2you Quote Link to comment Share on other sites More sharing options...
Hatake Kakashi Posted March 27, 2012 Group: Members Topic Count: 254 Topics Per Day: 0.05 Content Count: 825 Reputation: 3 Joined: 11/14/11 Last Seen: June 25, 2021 Author Share Posted March 27, 2012 thanks to sir tron. question? where can i download latest thor patcher? Quote Link to comment Share on other sites More sharing options...
Nameless2you Posted March 27, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 351 Reputation: 52 Joined: 11/15/11 Last Seen: June 15, 2015 Share Posted March 27, 2012 1st, I'm not tr0n, I'm Nameless2you.. )': 2nd, http://rathena.org/board/index.php?app=core&module=search§ion=search&do=search&fromsearch=1 it's even displayed on the first page. Quote Link to comment Share on other sites More sharing options...
tr0n Posted March 27, 2012 Group: Members Topic Count: 28 Topics Per Day: 0.01 Content Count: 562 Reputation: 153 Joined: 02/21/12 Last Seen: February 27, 2024 Share Posted March 27, 2012 1st, I'm not tr0n, I'm Nameless2you.. )': 2nd, http://rathena.org/b...ch&fromsearch=1 it's even displayed on the first page. He said thanks to me <.< Quote Link to comment Share on other sites More sharing options...
Hatake Kakashi Posted March 27, 2012 Group: Members Topic Count: 254 Topics Per Day: 0.05 Content Count: 825 Reputation: 3 Joined: 11/14/11 Last Seen: June 25, 2021 Author Share Posted March 27, 2012 haha,,, thank to sir nameless2you too xD but sir tron help me a lot. thanks.... Quote Link to comment Share on other sites More sharing options...
Question
Hatake Kakashi
i have error in my 2 scripts.
here's the script.
questnpc2.txt
turbo_room,117,89,4 script Quest NPC 2 911,{ // ==Change coords, Name of NPC and Sprite==
set .@npc$,"[Mixis]"; // ==Change to name of npc==
mes .@npc$; // ==You can change the dialouge if you want==
mes "Pssst!";
mes "Hey! Why are you carrying so many";
mes "items?";
mes "You mind sharing them with me?";
next;
menu "Wolf Flute",l_wbw,"No Thanks!",l_nothanks;
l_wbw:
mes .@npc$;
mes "^4EE2ECWolf Flute^000000";
mes "150 Brigan,";
mes "20 Soft Feather,";
mes "10 Gold";
next;
if(countitem(7054) <150) goto l_noitem;
if(countitem(7063) <20) goto l_noitem;
if(countitem(969) <10) goto l_noitem;
delitem 7054,150;
delitem 7063,20;;
delitem 969,200;
getitem 6124,1; // IMPORTANT: Change this to the ItemID of the item you're giving and the amount.
mes .@npc$;
mes "Congratulations! You have earned my ^4EE2ECWolf Flute^000000!";
next;
mes .@npc$;
mes "Goodbye!";
close;
l_noitem:
mes .@npc$;
mes "Please come back when you have my required items.";
close;
l_nothanks:
mes .@npc$;
mes "Alright, bye for now!";
close;
}
}
}
}
}
my PvProom
//===== eAthena Script =======================================
//= PvP
//===== By: ==================================================
//= Destinee~
//===== Description: =========================================
//= A basic PVP script.
//===== Additional Comments: =================================
//= Dont copyright this and claiming that you've made this. Use it only for your own server.
//============================================================
prontera,156,175,6 script PvP Arena 413,{
mes "[PvP Warper]";
mes "Do you want to warp to the PvP Arena and fight your enemies?";
menu "Sure, Bring it on!",L_Yes,"Nah, I'm not ready yet.",L_No;
L_Yes:
mes "[PvP Warper]";
mes "Which PvP Arena do you want to enter?";
menu "PvP Arena [" + getmapusers("pvp_y_1-2.gat") + " / 20]",L1,
"GvG Arena [" + getmapusers("guild_vs2.gat") + " / 20]",L2,
"Nightmare Mode [" + getmapusers("guild_vs4.gat") + " / 20]",L3;
L1:
if (getmapusers("pvp_y_1-2.gat") > 19) goto Lsorry;
warp "pvp_y_1-2",0,0;
announce "[ "+strcharinfo(0)+" ] is warped into PVP Arena.",0;
close;
L2:
if (getmapusers("guild_vs2.gat") > 19) goto Lsorry;
warp "guild_vs2",0,0;
announce "[ "+strcharinfo(0)+" ] is warped into GVG Arena.",0;
close;
close;
L3:
if (getmapusers("guild_vs4.gat") > 19) goto Lsorry;
warp "guild_vs4",0,0;
announce "[ "+strcharinfo(0)+" ] is warped into Nightmare Mode.",0;
close;
close;
Lsorry:
mes "[PvP Warper]";
mes "Sorry but this PvP Arena is full, maybe you could try another one.";
close;
L_No:
close;
OnInit:
waitingroom "PvP Arena",0;
sleep 1000;
}
}
hugel,93,152,3 duplicate(PvP Warper) PvP Warper#2 413
lighthalzen,154,94,3 duplicate(PvP Warper) PvP Warper#3 413
guild_vs2 mapflag noteleport
guild_vs2 mapflag nowarp
guild_vs2 mapflag noreturn
guild_vs4 mapflag noteleport
guild_vs4 mapflag nowarp
guild_vs4 mapflag noreturn
Link to comment
Share on other sites
7 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.