Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Help (https://forums.graalonline.com/forums/showthread.php?t=12518)

fireball_dolphonia 09-22-2001 09:06 AM

Help
 
ok i need help but how do u make it like if u say to the npc follow me and it has to be the owner's account and if its not make it stay there

Merlin 09-22-2001 09:09 AM

if (playerchats&&strequals(#c,follow) {
if (strequals(#a,#s(this.owner)) {
omgactions;
}
}
or something :\

fireball_dolphonia 09-22-2001 09:11 AM

but u forgot follow player
else{}

Merlin 09-22-2001 09:15 AM

followplayer i thought only works offline

fireball_dolphonia 09-22-2001 09:16 AM

ok
i had problems with merlins script
heres the new one
if (playersays(show owner))message Owner #a;
if (playerchats&&strequals(#c,follow)) {
if (strequals(#a,#s(this.owner))){
followplayer;
}
else{}
}

Merlin 09-22-2001 09:24 AM

Quote:

Originally posted by Kaimetsu


DID I JUST TELL YOU NOT TO USE "ELSE{}"? I THINK I DID.

And don't use playersays. And no, he wasn't saying that "omgactions;" was a real command.

hehe.


the script i made was setting you up
you would need to make a basic set up like


if (created) {
attributes here;
setstring this.owner,none;
}
if (playertouchsme) {
if (strequals(#s,this.owner(none)) {
setstring this.owner,#a;
}
}
then like
if (playerchats&&strequals(#c,follow)) {
if (strequals(#s,this.owner(#a)) {
actions here;
}
}

that's just a basic outline thing, i can tell there will be errors since i made it just now without testing


All times are GMT +2. The time now is 08:40 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.