Jump to content
  • 0

[Rathena] Add sign npc to the script


Draundenth

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.01
  • Content Count:  15
  • Reputation:   0
  • Joined:  04/23/21
  • Last Seen:  

Hello, i just figure out how disable vending on all map and enable in certain cells by this script:

-	script	prontera_vending	-1,{
OnInit:
setcell "prontera", 0,0,     400,400, cell_novending,1;
setcell "prontera", 147,170, 147,130, cell_novending,0;
setcell "prontera", 164,170, 164,130, cell_novending,0;
end;
}

prontera	mapflag	nobranch

now i try to add 4 signs npc:

1.
name: Vending Area Start 
cords: prontera,147, 171, 7

2.
name: Vending Area Start 
cords: prontera,164, 171, 7

3.
name: Vending Area End 
cords: prontera,147, 130, 7

4.
name: Vending Area End 
cords: prontera,164, 130, 7

 

Just staying sign if somone click it nothing happen, just for info for people where they can vending and where not.

 

@Edit

 

Ok i figured out how do that this is script:

-	script	prontera_vending	-1,{
OnInit:
setcell "prontera", 0,0,     400,400, cell_novending,1;
setcell "prontera", 147,170, 147,130, cell_novending,0;
setcell "prontera", 164,170, 164,130, cell_novending,0;
end;
}

prontera,147,171,5	script	Vending Area Start#01	837,{
}

prontera,164,171,5	script	Vending Area Start#02	837,{
}

prontera,147,130,5	script	Vending Area End#01	837,{
}

prontera,164,130,5	script	Vending Area End#02	837,{
}

prontera	mapflag	nobranch

 

Edited by Draundenth
Done by myself xD
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  292
  • Reputation:   46
  • Joined:  10/30/12
  • Last Seen:  

Did you mean Vendor/Vending Control System?

If yes, use this script:

 

Then read my replied on this topic for how to setup your vending places:

 

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