bury
Active Member
- Joined
- Jul 27, 2008
- Messages
- 421
- Solutions
- 7
- Reaction score
- 25
Hello!
I want to know if somebody could help me with a script.
First of all I want to take over control it with a storage.
Step by step; I have made a quest that once finished it gives you a "weed cake", it gives you storage = 124.
What I need now is the script of that effect.... What effect? I would want to be like move east and west and onplayersay (cid, "Hey dude, where dafuq is my house?") All each 6 seconds, for example, in a endless loop.
I have tried to make it but im starting in scripting and im not very good. I think it would be something like this:
Then, with the admin char I can disable it when I want ^^.
Thanks you for your help!
I want to know if somebody could help me with a script.
First of all I want to take over control it with a storage.
Step by step; I have made a quest that once finished it gives you a "weed cake", it gives you storage = 124.
What I need now is the script of that effect.... What effect? I would want to be like move east and west and onplayersay (cid, "Hey dude, where dafuq is my house?") All each 6 seconds, for example, in a endless loop.
I have tried to make it but im starting in scripting and im not very good. I think it would be something like this:
LUA:
Function onThink (cid, interval)
if getPlayerStorageValue(cid, 124) > 0 then
move east and west and say "Hey dude, where dafuq is my house?" TEMPO*6 (seconds)
return true
end
return true
end
Then, with the admin char I can disable it when I want ^^.
Thanks you for your help!