Jump to content
  • 0

help sir emistry and other's.


Hatake Kakashi

Question


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

i have error in my 2 scripts.

j6tv5v.jpg

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 by Hatake Kakashi
Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   152
  • Joined:  02/21/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

I think you're problem is Tabbing? Correct me if I'm wrong XD

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   52
  • Joined:  11/15/11
  • Last Seen:  

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 by Nameless2you
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

thanks to sir tron.

question? where can i download latest thor patcher?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   52
  • Joined:  11/15/11
  • Last Seen:  

1st, I'm not tr0n, I'm Nameless2you.. )':

2nd, http://rathena.org/board/index.php?app=core&module=search&section=search&do=search&fromsearch=1 it's even displayed on the first page.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   152
  • Joined:  02/21/12
  • Last Seen:  

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 <.<

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

haha,,, thank to sir nameless2you too xD

but sir tron help me a lot.

thanks....

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...