Jump to content
  • 0

Whisper ToolDealer not working


Poseidon

Question


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  107
  • Reputation:   6
  • Joined:  12/09/11
  • Last Seen:  

Hi Guys, Im getting an error when trying to whisper to my tool dealer

 

[Error]: npc_event: event not found [ToolDealer::OnAtcommand] 

Here is the script

 

//===== rAthena Script ======================================= 
//= Whisper Tool dealer
//===== By: ================================================== 
//= Poseidon
//===== Current Version: ===================================== 
//= 1.0
//===== Compatible With: ===================================== 
//= rAthena
//===== Description: ========================================= 
//= Whisper Tool dealer
//===== Additional Comments: ================================= 
//============================================================ 

-	script	Shop	-1,{

	OnWhisperGlobal:
		bindatcmd "sell","ToolDealer::OnAtcommand";
		end;
	OnAtcommand:
		callshop "ToolDealer", 0;
		end;
	
	}

-	shop	ToolDealer	-,611:-1,1750:-1,501:-1,502:-1,503:-1,504:-1,506:-1,645:-1,656:-1,601:-1,602:-1,1065:-1,2239:-1

basically i would like players to be able to type @sell anywhere , and the tool dealer to pop open

 

Thanks

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  181
  • Reputation:   53
  • Joined:  04/07/13
  • Last Seen:  

//===== rAthena Script ======================================= 
//= Whisper Tool dealer
//===== By: ================================================== 
//= Poseidon
//===== Current Version: ===================================== 
//= 1.0
//===== Compatible With: ===================================== 
//= rAthena
//===== Description: ========================================= 
//= Whisper Tool dealer
//===== Additional Comments: ================================= 
//============================================================ 

-	script	Shop	-1,{

	OnInit:
		bindatcmd "sell", strnpcinfo(0)+"::OnAtcommand";
		end;
	OnAtcommand:
		callshop "ToolDealer", 0;
		end;
	
	}

-	shop	ToolDealer	-,611:-1,1750:-1,501:-1,502:-1,503:-1,504:-1,506:-1,645:-1,656:-1,601:-1,602:-1,1065:-1,2239:-1

 

This should do it.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  107
  • Reputation:   6
  • Joined:  12/09/11
  • Last Seen:  

Disguard please

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