CLEO Help Cleo scripts on player nicknames

CLEO related
Status
Not open for further replies.

BigMan

Member
Joined
Nov 30, 2017
Messages
22
Reaction score
0
Hello guys, i wanna ask u h[font=arial, sans-serif]ow to make cleo script only on a player nickname PVZ: Script made on nick Blablabla_Blablala 
[size=medium][font=arial, sans-serif]and if another nickname script does not work automatically. 
[font=arial, sans-serif]I think you understand about that Sorry for bad english[/font][/font]
[/font][/size]


[font=arial, sans-serif][size=medium][font=arial, sans-serif][font=arial, sans-serif]@springfield[/font][/font][/font][/size]
[font=arial, sans-serif][size=medium][font=arial, sans-serif][font=arial, sans-serif]@opcode[/font][/font][/font][/size]
 

Edvincik

Well-known member
Joined
Mar 15, 2016
Messages
399
Reaction score
27
BigMan said:
springfield said:
BigMan said:
I mean cleo script created on the player name pvz: Blabla_Blabla and if another player use it, with another name, the cleo script would not work for him.

And where is the problem? The concept is simple
1. Get the local player name(the player who is using the script) -> use SF opcode 0B36
2. Compare the name as string against "Blabla_Blabla" using opcode 0C21.
3. Based on the result from op. 0C21 either allow script execution or terminate it.


[font=arial, sans-serif]I dont understand this. 3. Based on the result from op. 0C21 either allow script execution or terminate it. [font=arial, sans-serif][size=medium]how to execute[/font][/font][/size]
[font=arial, sans-serif][font=arial, sans-serif][size=medium]for execution i have to use 0C14 opcode?[/font][/font][/size]
OMFG


BigMan said:
springfield said:
BigMan said:
I mean cleo script created on the player name pvz: Blabla_Blabla and if another player use it, with another name, the cleo script would not work for him.

And where is the problem? The concept is simple
1. Get the local player name(the player who is using the script) -> use SF opcode 0B36
2. Compare the name as string against "Blabla_Blabla" using opcode 0C21.
3. Based on the result from op. 0C21 either allow script execution or terminate it.


[font=arial, sans-serif]I dont understand this. 3. Based on the result from op. 0C21 either allow script execution or terminate it. [font=arial, sans-serif][size=medium]how to execute[/font][/font][/size]
[font=arial, sans-serif][font=arial, sans-serif][size=medium]for execution i have to use 0C14 opcode?[/font][/font][/size]

Gal tu nebekurk cleo, tau viska pasake ir tau vistiek nedaeina
 

BigMan

Member
Joined
Nov 30, 2017
Messages
22
Reaction score
0
springfield said:
BigMan said:
I mean cleo script created on the player name pvz: Blabla_Blabla and if another player use it, with another name, the cleo script would not work for him.

And where is the problem? The concept is simple
1. Get the local player name(the player who is using the script) -> use SF opcode 0B36
2. Compare the name as string against "Blabla_Blabla" using opcode 0C21.
3. Based on the result from op. 0C21 either allow script execution or terminate it.

Works, thanks.
 
Status
Not open for further replies.
Top