luizinhomt Posted May 21 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 98 Reputation: 1 Joined: 01/05/13 Last Seen: 10 hours ago Share Posted May 21 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 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 241 Reputation: 91 Joined: 06/30/18 Last Seen: 11 hours ago Share Posted May 21 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 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 98 Reputation: 1 Joined: 01/05/13 Last Seen: 10 hours ago Author Share Posted May 23 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.