Jump to content
  • 0

Requests NPC


skipjack94

Question


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  44
  • Reputation:   0
  • Joined:  08/27/12
  • Last Seen:  

i want make some npc when the npc just novice lvl 90+

can enter that room...

then in deferent room or map

when we use the item like santa hat we not kick out

but when player not use the santa hat, the player will be out

can someone make me a script?

Edited by skipjack94
Link to comment
Share on other sites

5 answers to this question

Recommended Posts


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

Did not quite get what you meant with the Santa hat.

prontera,150,165,2	script	Santa NPC	512,{

set .@n$, "[NPC_NAME]"; // name of NPc
mes .@n$;
mes "Hello would you like to enter the Christmas Event?";
mes "You will need to be a ^FF0000Novice^000000, that is higher than level ^FF000090^000000";
if(select("Yes please:No Thank you.")==2) close;
next;
if(BaseClass == Job_Novice && BaseLevel >= 90 && isequipped(2236)) warp "MAP",X,Y; //Map,x,y (0,0 for random coordinates on X & Y)
mes .@n$;
mes "You do not seem to meet the previous stated conditions...";
close;

}

Finaly managed to do a few things, usually this place is swarmed by rAthena Script devs; lmao.

Edited by garet999
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

Finaly managed to do a few things, usually this place is swarmed by rAthena Script devs; lmao.
<3 .... I loved this words you said XD

I think he meant, if ( isequipped("Santa Hat") ) ... ? can go in, like that

EDIT: oh you already done that

but usually we split out the requirement of

( BaseClass == Job_Novice && BaseLevel >= 90 )

and

( isequipped(2236) )

into 2 different conditions to tell the users what they did wrong

Edited by AnnieRuru
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  44
  • Reputation:   0
  • Joined:  08/27/12
  • Last Seen:  

oh thanks sir garet999

hmmm but in map it will be kick out? when the santa hat not equipment?

i want make in map it will b out when santa hat not equipment can you make me one sir?

Edited by skipjack94
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:  

try this

http://pastebin.com/raw.php?i=3PrnkSNL

trunk/db/re/item_db.txt

2236,Santa's_Hat,Santa Hat,5,20,,100,,1,,0,0xFFFFFFFF,7,2,256,,0,1,20,{ bonus bMdef,1; bonus bLuk,1; },{},{  doevent "Sample#xmas::OnKick";  }

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  44
  • Reputation:   0
  • Joined:  08/27/12
  • Last Seen:  

thanks emistry you always help me /thx /thx /thx /thx /thx /thx /thx /thx /thx

hmmmm

in my server npc not respond

when i click nothing happen

Edited by skipjack94
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...