Jump to content
  • 0

Im tired of this script! Help please!


truefg

Question


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  58
  • Reputation:   0
  • Joined:  11/27/12
  • Last Seen:  

i made this script my self. i dont know why is not working, because i think is right!! Can yah help me please!! Thanks!!

quiz_02,52,183,4 script Head protector Quest 49,{
mes "[^0000ffHead Protector^000000.]";
mes "I can help you te get one of the";
mes "Famouse ^ff0000Naruto's^000000 Head Protectors.";
mes "Which Head Protector would you like to do?";
mes "^ff0000 Fire^000000  [sTR+10]";
mes "^ffffff Wind^000000  [AGI+10]";
mes "^aaff00 Earth^000000 [VIT+10]";
mes "^00ffff Water^000000 [iNT+10]";
mes "^550000 Sound^000000 [DEX+10]";
mes "^00ff00 Lightning^000000 [LUK+10]";
next;
menu "Fire.",R_fire,"Wind.",R_wind,"Earth.",R_earth,"Water.",R_water,"Sound.",R_sound,"Lightning.",R_light;
R_earth:
next;
mes "[^0000ffEarth Band^000000]";
mes "Do you have the items?";
mes "Please select an option";
menu "What do i need?",L_required1,"I have the items!",L_check1,"Leave.",L_partir1;
R_fire:
next;
mes "[^ff0000Fire Band^000000]";
mes "Do you have the items?";
mes "Please select an option";
menu "What do i need?[Again]",L_required2,"I have the items!",L_check2,"Leave.",L_partir2;
R_wind:
next;
mes "[^ffffffWind Band^000000]";
mes "Do you have the items?";
mes "Please select an option";
menu "What do i need?[Again]",L_required3,"I have the items!",L_check3,"Leave.",L_partir3;
R_water:
next;
mes "[^0000ffWater Band^000000]";
mes "Please select an option";
mes "Do you have the items?";
R_sound:
next;
mes "[^550000Sound Band^000000]";
mes "Please select an option";
menu "What do i need?[Again]",L_required5,"I have the items!",L_check5,"Leave.",L_partir5;
R_light:
next;
mes "[^00ff00Lightning Band^000000]";
mes "Please select an option";
menu "What do i need?[Again]",L_required6,"I have the items!",L_check6,"Leave.",L_partir6;
L_required1:
 next;
 mes "[^0000ffEarth Band^000000]";
 mes "^FF0000200^000000 Rough Oridecon";
 mes "^FF00005^000000 Mejestic Goar";
 mes "^0000FF 5000000^000000 zeny";
 close;
L_check1:
 next;
 if(countitem(756) < 200) goto L_manque1;
 if(countitem(2256) < 5) goto L_manque1;
 if(Zeny < 5000000) goto L_manque1;
 mes "[^000000Earth Band^000000]";
 mes "Here is you band";
 delitem 756,200;
 delitem 2256,5;
 set Zeny, Zeny - 5000000;
 getitem 8053,1;
 close;
L_manque1:
 next;
 mes "[^0000ffEarth Band^000000]";
 mes "You miss...";
 if(countitem(756) < 200) mes "^FF0000"+(200 - countitem(756)) +"^000000 Rough Oridecon";
 if(countitem(2256) < 5) mes "^FF0000"+(5 - countitem(2256)) +"^000000 Mejestic Goar";
 if(Zeny < 5000000) mes "^0000FF"+(5000000 - Zeny)+"^000000 Zeny";
 close;
L_partir1:
 next;
 mes "[^0000ffEarth Band^000000]";
 mes "Have a nice day.";
 close;
L_required2:
 next;
 mes "[^000000Fire Band^000000]";
 mes "^FF0000 200^000000 Burning Heart";
 mes "^FF0000 5^000000 Majestic Goat";
 mes "^0000FF 5000000^000000 zeny";
 close;
L_check2:
 if(countitem(7097) < 200) goto L_manque2;
 if(countitem(2256) < 5) goto L_manque2;
 if(Zeny < 5000000) goto L_manque2;
 next;
 mes "[^000000Fire Band^000000]";
 mes "Here is you band";
 delitem 7097,200;
 delitem 2256,5;
 set Zeny, Zeny - 5000000;
 getitem 8054,1;
 close;
L_manque2:
 next;
 mes "[^000000Finer Band^000000]";
 mes "You miss...";
 if(countitem(7097) < 200) mes "^FF0000"+(200 - countitem(7097)) +"^000000 Burning Heart";
 if(countitem(2256) < 5) mes "^FF0000"+(5 - countitem(2256)) +"^000000 Majestic Goat";
 if(Zeny < 5000000) mes "^0000FF"+(5000000 - Zeny)+"^000000 Zeny";
 close;
L_partir2:
 next;
 mes "[^000000Finer Band^000000]";
 mes "Have a nice day.";
 close;

L_required3:
 next;
 mes "[^000000Wind Band^000000]";
 mes "^FF0000200^000000 Burning Heart";
 mes "^FF00005^000000 Mejestic Goar";
 mes "^0000FF5000000^000000 zeny";
 close;
L_check3:
 next;
 if(countitem(7092) < 200) goto L_manque3;
 if(countitem(2256) < 5) goto L_manque3;
 if(Zeny < 5000000) goto L_manque3;
 mes "[^000000Wind Band^000000]";
 mes "Here is you band";
 delitem 7092,200;
 delitem 2256,5;
 set Zeny, Zeny - 5000000;
 getitem 8051,1;
 close;
L_manque3:
 next;
 mes "[^000000Wind Band^000000]";
 mes "You miss...";
 if(countitem(7092) < 200) mes "^FF0000"+(200 - countitem(7092)) +"^000000 Burning Heart";
 if(countitem(2256) < 5) mes "^FF0000"+(5 - countitem(2256)) +"^000000 Mejestic Goar";
 if(Zeny < 5000000) mes "^0000FF"+(5000000 - Zeny)+"^000000 Zeny";
 close;
L_partir3:
 next;
 mes "[^000000Wind Band^000000]";
 mes "Have a nice day.";
 close;

L_required4:
 next;
 mes "[^000000Water Band^000000]";
 mes "^FF0000200^000000 Glacial Heart";
 mes "^FF00005^000000 Mejestic Goar";
 mes "^0000FF5000000^000000 zeny";
 close;
L_check4:
 next;
 if(countitem(7561) < 200) goto L_manque4;
 if(countitem(2256) < 5) goto L_manque4;
 if(Zeny < 5000000) goto L_manque4;
 mes "[^000000Water Band^000000]";
 mes "Here is you band";
 delitem 7561,200;
 delitem 2256,5;
 set Zeny, Zeny - 5000000;
 getitem 8052,1;
 close;
L_manque4:
 next;
 mes "[^000000Water Band^000000]";
 mes "You miss...";
 if(countitem(7561) < 200) mes "^FF0000"+(200 - countitem(7561)) +"^000000 Glacial Heart";
 if(countitem(2256) < 5) mes "^FF0000"+(5 - countitem(2256)) +"^000000 Mejestic Goar";
 if(Zeny < 5000000) mes "^0000FF"+(5000000 - Zeny)+"^000000 Zeny";
 close;
L_partir4:
 next;
 mes "[^000000Water Band^000000]";
 mes "Have a nice day.";
 close;

L_required5:
 next;
 mes "[^000000Sound Band^000000]";
 mes "^FF0000200^000000 Rough Oridecon";
 mes "^FF00005^000000 Mejestic Goar";
 mes "^0000FF5000000^000000 zeny";
 close;
L_check5:
 next;
 if(countitem(756) < 200) goto L_manque5;
 if(countitem(2256) < 5) goto L_manque5;
 if(Zeny < 5000000) goto L_manque5;
 mes "[^000000Sound Band^000000]";
 mes "Here is you band";
 delitem 756,200;
 delitem 2256,5;
 set Zeny, Zeny - 5000000;
 getitem 8055,1;
 close;
L_manque5:
 next;
 mes "[^000000Sound Band^000000]";
 mes "You miss...";
 if(countitem(756) < 200) mes "^FF0000"+(200 - countitem(756)) +"^000000 Rough Oridecon";
 if(countitem(2256) < 5) mes "^FF0000"+(5 - countitem(2256)) +"^000000 Mejestic Goar";
 if(Zeny < 5000000) mes "^0000FF"+(5000000 - Zeny)+"^000000 Zeny";
 close;
L_partir5:
 next;
 mes "[^000000Sound Band^000000]";
 mes "Have a nice day.";
 close;

L_required6:
 next;
 mes "[^000000Lightning Band^000000]";
 mes "^FF0000200^000000 Glacial Heart";
 mes "^FF00005^000000 Mejestic Goar";
 mes "^0000FF5000000^000000 zeny";
 close;
L_check6:
 next;
 if(countitem(7561) < 200) goto L_manque6;
 if(countitem(2256) < 5) goto L_manque6;
 if(Zeny < 5000000) goto L_manque6;
 mes "[^000000Lightning Band^000000]";
 mes "Here is you badn";
 delitem 7561,200;
 delitem 2256,5;
 set Zeny, Zeny - 5000000;
 getitem 8053,1;
 close;
L_manque6:
 next;
 mes "[^000000Lightning Band^000000]";
 mes "You miss...";
 if(countitem(7561) < 200) mes "^FF0000"+(200 - countitem(7561)) +"^000000 Glacial Heart";
 if(countitem(2256) < 5) mes "^FF0000"+(5 - countitem(2256)) +"^000000 Mejestic Goar";
 if(Zeny < 5000000) mes "^0000FF"+(5000000 - Zeny)+"^000000 Zeny";
 close;
L_partir6:
 next;
 mes "[^000000Lightning Band^000000]";
 mes "Have a nice day.";
 close;
}

Edited by Emistry
Please use [CODEBOX] or Attachments for long contents.
Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  228
  • Reputation:   33
  • Joined:  11/15/12
  • Last Seen:  

error message?

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

getitem 8053,1;

Do not exist.

quiz_02,52,183

Invalid coordinates.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  161
  • Reputation:   31
  • Joined:  12/06/11
  • Last Seen:  

^

8053 could be a custom item, thus it could exist for him. As for the coordinates, the NPC should still load regardless of coordinates.

As for the script its not tabbed, there are spaces instead :/, also I could be wrong but, I think the NPC name is too long.

Edited by Jeroen
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

^

8053 could be a custom item, thus it could exist for him. As for the coordinates, the NPC should still load regardless of coordinates.

As for the script its not tabbed, there are spaces instead :/, also I could be wrong but, I think the NPC name is too long.

I believe an NPC name can be up to 23 characters long. Also, yeah, the top isn't tabbed, it should be tabbed.

truefg, please look here: Basic_Scripting#Structure for a little bit more help. Nevertheless, always provide the errors your map server spits out - it'll help speed the process of helping you.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

the script working fine in my test server...

v9gjs.png

i dont know what you meant by your "Not Working"...

the script seem to work fine except you are putting it at a wrong coordinate ....

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  58
  • Reputation:   0
  • Joined:  11/27/12
  • Last Seen:  

error message?

getitem 8053,1;

Do not exist.

quiz_02,52,183

Invalid coordinates.

^

8053 could be a custom item, thus it could exist for him. As for the coordinates, the NPC should still load regardless of coordinates.

As for the script its not tabbed, there are spaces instead :/, also I could be wrong but, I think the NPC name is too long.

the script working fine in my test server...

v9gjs.png

i dont know what you meant by your "Not Working"...

the script seem to work fine except you are putting it at a wrong coordinate ....

theres no error mesgs..

The 8053 is s custom item in my server..

And ill see.. idk why is not working.. and quiz_02 is a map in my server.. but ill check.. why is not workin.. thanks.. for testing it..

But still the script is not coming out in my game.. i put.. @loadnpc npc/Airnpc/sunglasses.txt And @reloadscript. but still not out!! ill try restaring the server~ :$

Edited by truefg
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  228
  • Reputation:   33
  • Joined:  11/15/12
  • Last Seen:  

try to change the npc sprite id and coordinates.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  58
  • Reputation:   0
  • Joined:  11/27/12
  • Last Seen:  

try to change the npc sprite id and coordinates.

I fixed.. it was something wrong in my server.. i was fixing something now is fixed.. thanks for the the help!! Everyone! Edited by truefg
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...