luizinhomt Posted May 21, 2024 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
0 Winterfox Posted May 21, 2024 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
0 luizinhomt Posted May 23, 2024 Author 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
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
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.