Jump to content
  • 0

When i loadnpc it wont appear help me here


ejieswak1453

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  39
  • Reputation:   0
  • Joined:  10/31/13
  • Last Seen:  

Here's my problem when every time i loadnpc it wont appear on the map

 

here my script

//||------------------------------------------------------------------------------||
//||---------------------Simple Bank Note NPC ------------------------------------||
//||---------------------------by: Whathell---------------------------------------||
//||------------------------------------------------------------------------------||
//||------------------------------------------------------------------------------||

prontera,147,184,4 script Banker 833,{
//|=====================Settings==============================
set @npcname$,"^ff0000[Banker]^000000"; //npc name
set @banknoteprice,1000000; //price you want for each bank note
set @banknoteid,7922; //the item id for your bank note
set @maxzeny,2000000000; //put in the max zeny you have for your server
//|===========================================================
mes @npcname$;
mes "Hi "+ strcharinfo(0) +", I can change your bank notes into zeny, and vice versa.";
mes "Each bank note is worth 1 Million Zeny.";
next;
mes @npcname$;
mes "So tell me,what can I do for you?";
switch(select("Exchange Bank Notes to Zeny:Exchange Zeny to Bank Notes")) {
case 1:
next;
mes @npcname$;
mes "Please put in the amount of Bank Notes you want to exchange:";
next;
input @banknoteamount;
if (@banknoteamount <= 0) {
mes @npcname$;
mes "Please come back if you change your mind.";
close;
} else if (countitem(@banknoteid) < @banknoteamount) {
mes @npcname$;
mes "You dont have enough Bank Notes to complete this
transaction.";
close;
} else if ((@banknoteamount*@banknoteprice)+Zeny > @maxzeny) {
mes @npcname$;
mes "You cannot exchange this number of Bank Notes because you
will exceed the maximum amount of zeny you can hold.";
close;
}
next;
set @price,@banknoteprice*@banknoteamount;
delitem @banknoteid,@banknoteamount;
set Zeny,Zeny+@price;
mes @npcname$;
mes "Transaction complete! Here's your money.";
break;
case 2:
next;
mes @npcname$;
mes "Please put in the amount of Bank Notes you want.";
next;
input @noteamount;
if (@noteamount <= 0) {
mes @npcname$;
mes "Please come back if you change your mind.";
close;
} else if (@noteamount*@banknoteprice > Zeny) {
mes @npcname$;
mes "I'm sorry but you lack Zeny to complete this transaction.";

bank.txt

Edited by Patskie
Change to code
Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   241
  • Joined:  09/05/12
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  404
  • Reputation:   247
  • Joined:  12/17/11
  • Last Seen:  

Before asking anything else, did you properly tab?

 

(Also, your code seems like a part of the script is cut of, but I pressume that's merely a little mistake because your attachment seems fine.)

 

prontera,147,184,4[TAB]script[TAB]Banker[TAB]833,{
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  39
  • Reputation:   0
  • Joined:  10/31/13
  • Last Seen:  

Can you send it to me the whole correct  Script thanks

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   241
  • Joined:  09/05/12
  • Last Seen:  

You just need to use tab in the first line. No need to give the whole script. 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  39
  • Reputation:   0
  • Joined:  10/31/13
  • Last Seen:  

i just try but its the same 

it wont show in the map 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   241
  • Joined:  09/05/12
  • Last Seen:  

Show error if any ( on your console )

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  39
  • Reputation:   0
  • Joined:  10/31/13
  • Last Seen:  

no erro it can loadnpc it said npc loaded but the problem is the npc is not appear on the map

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