vespercore02 Posted April 27, 2012 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 42 Reputation: 3 Joined: 11/29/11 Last Seen: April 19, 2017 Share Posted April 27, 2012 i want to make a npc that must required player to have a party and a guild for them to join in a event for boss time attack use and 7 vs 7 just for npc hehe Quote Link to comment Share on other sites More sharing options...
Emistry Posted April 29, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 13 hours ago Share Posted April 29, 2012 you can use this command to do the checking stuffs.... *getcharid(<type>{,"<character name>"}) This function will return a unique ID number of the invoking character, or, if a character name is specified, of that character. Type is the kind of associated ID number required: 0 - Character ID number. 1 - Party ID number. 2 - Guild ID number. 3 - Account ID number. 4 - Battle ground ID For most purposes other than printing it, a number is better to have than a name (people do horrifying things to their character names). If the character is not in a party or not in a guild, the function will return 0 if guild or party number is requested. If a name is specified and the character is not found, 0 is returned. If getcharid(0) returns a zero, the script got called not by a character and doesn't have an attached RID. Note that this will cause the map server to print "player not attached!" error messages, so it is preferred to use "playerattached" to check for the character attached to the script. if( getcharid(2) == 0 ) mes "Only members of a guild are allowed here!"; Quote Link to comment Share on other sites More sharing options...
vespercore02 Posted April 30, 2012 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 42 Reputation: 3 Joined: 11/29/11 Last Seen: April 19, 2017 Author Share Posted April 30, 2012 thnx emistry i forgot that getchar hehe i search it too in the script command in doc hehe Quote Link to comment Share on other sites More sharing options...
Question
vespercore02
i want to make a npc that must required player to have a party and a guild for them to join in a event
for boss time attack use and 7 vs 7
just for npc hehe
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.