Jump to content
  • 0
Sign in to follow this  
CDER

Check_NameGuild

Question

 

hello guys, again here, someone would know how to create a npc, which requires "xxx" zeny, to register a "guild_name" of the character in the npc itself, then when the registration ends, the npc itself would check the guild name of the characters and if it was the "guild_name" registered in npc, would you teleport the "guild_members" to a location? I'm Brazilian and have a big project in mind, but with little knowledge in this area

 

 

Edited by Dastgir
Removed advertisement

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

I see you want to learn how to script NPCs. On your Hercules server folder, check out the documentaton for scripting. This will start you off so that your "little knowledge in this area" becomes bigger. You'll eventually become a great scripter!

The documentation for scripting is found in:

doc/script_commands.txt

I want to do X, where do I look for that?

Specifically for the things you want to learn, look for the following sections in the document:

Create an npc
Script loading structure, Script file format

which requires "xxx" zeny
Variables, Zeny

to register a "guild_name"
Variables

when the registration ends
*initnpctimer

if it was the guild name
Operators, conditional operators

teleport
*warp

the guild members
Arrays

Arrays may be a more difficult topic to learn on your own, but reading other people's scripts will help you understand how it works. You can ask questions.

If you get started on scripting it, I can give you some feedback on your code when I'm free.

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.