luizinhomt Posted May 21, 2024 Group: Members Topic Count: 36 Topics Per Day: 0.01 Content Count: 111 Reputation: 1 Joined: 01/05/13 Last Seen: Wednesday at 01:43 AM Share Posted May 21, 2024 Good evening, could someone give an example of an NPC that every time there is a new owner of a castle the name of the new owner appears above his head, thank you in advance Quote Link to comment Share on other sites More sharing options...
0 Winterfox Posted May 21, 2024 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 245 Reputation: 93 Joined: 06/30/18 Last Seen: November 27, 2024 Share Posted May 21, 2024 prontera,155,177,5 script Example 100,{ end; OnAgitStart: OnAgitStart2: OnAgitStart3: initnpctimer; end; OnAgitEnd: OnAgitEnd2: OnAgitEnd3: stopnpctimer; end; OnTimer1000: initnpctimer; OnInit: .@owning_guild_id = getcastledata("payg_cas04", CD_GUILD_ID); if(.@owning_guild_id == 0) { .@owner_name$ = "Unowned"; } else { .@owner_name$ = getguildname(.@owning_guild_id); } delwaitingroom(); waitingroom(.@owner_name$, 0); } 1 Quote Link to comment Share on other sites More sharing options...
0 luizinhomt Posted May 23, 2024 Group: Members Topic Count: 36 Topics Per Day: 0.01 Content Count: 111 Reputation: 1 Joined: 01/05/13 Last Seen: Wednesday at 01:43 AM Author Share Posted May 23, 2024 On 5/21/2024 at 8:06 PM, Winterfox said: prontera,155,177,5 script Example 100,{ end; OnAgitStart: OnAgitStart2: OnAgitStart3: initnpctimer; end; OnAgitEnd: OnAgitEnd2: OnAgitEnd3: stopnpctimer; end; OnTimer1000: initnpctimer; OnInit: .@owning_guild_id = getcastledata("payg_cas04", CD_GUILD_ID); if(.@owning_guild_id == 0) { .@owner_name$ = "Unowned"; } else { .@owner_name$ = getguildname(.@owning_guild_id); } delwaitingroom(); waitingroom(.@owner_name$, 0); } I will test thanks Quote Link to comment Share on other sites More sharing options...
Question
luizinhomt
Good evening, could someone give an example of an NPC that every time there is a new owner of a castle the name of the new owner appears above his head, thank you in advance
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.