t3quila Posted October 12, 2014 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 36 Reputation: 4 Joined: 04/16/12 Last Seen: December 9, 2018 Share Posted October 12, 2014 Hallo Masters of Source, after i discussed about PCRE and whisper_sys with Emistry in this topic i wish, this function can be reality if anyone can help me how to create source about deffpatern with global npc (like whisper_sys do).. for example: - script HealMeEverywhere -1,{ end; OnHealPlayer: percentheal 100, 100; specialeffect2 EF_HEAL; end; OnInit: (for example)defpatternglobal 1, "([^:]+):.*\\sheal plz(\\s.*)?", "OnHealPlayer"; activatepset 1; } so when i use normal chat "heal plz" global npc automatic heal me, in everywhere and everytime i need.. anyone can help my wishing for? i think it's possible to make great thing like this. ^^ thank you ^^ Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 12, 2014 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 12, 2014 you can do it. but need source mod. example: http://www.eathena.ws/board/index.php?s=162acedb2e373624ceccf22f9a50eb00&showtopic=274025&st=0&p=1506158entry1506158 Quote Link to comment Share on other sites More sharing options...
t3quila Posted October 13, 2014 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 36 Reputation: 4 Joined: 04/16/12 Last Seen: December 9, 2018 Author Share Posted October 13, 2014 thank's Emistry, but.. i can't modify source, its to hard for me hahaha >_< oh i can see annie's modification in here.. adding source onPcChatEvent? - script asdfadsfasdfa -1,{ OnPCChatEvent: for ( set .@i, 0; .@i < .size; set .@i, .@i +1 ) { if ( compare( @pc_chattext$, .foul$[.@i] ) ) { announce strcharinfo(0) +", stop speaking rude ! detect '"+ .foul$[.@i] +"'", 0; end; } } end; OnInit: setarray .foul$, "tanga", "shit", "fuck", "asshole"; set .size, getarraysize(.foul$); } still could use it in last git? Quote Link to comment Share on other sites More sharing options...
Question
t3quila
Hallo Masters of Source, after i discussed about PCRE and whisper_sys with Emistry in this topic
i wish, this function can be reality if anyone can help me how to create source about deffpatern with global npc (like whisper_sys do)..
for example:
end;
OnHealPlayer:
percentheal 100, 100;
specialeffect2 EF_HEAL;
end;
OnInit:
(for example)defpatternglobal 1, "([^:]+):.*\\sheal plz(\\s.*)?", "OnHealPlayer";
activatepset 1;
}
so when i use normal chat "heal plz" global npc automatic heal me, in everywhere and everytime i need..
anyone can help my wishing for? i think it's possible to make great thing like this. ^^
thank you ^^
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.