Graal Forums

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

ArmadeusWarlock 09-10-2001 01:19 AM

Owner Help
 
Just curious, would it be possible to set an owner to a house with triggeraction, with the command being like:
if(actionohouse1){
setstring server.ownhouse1,#a;
}
Could that work?

ArmadeusWarlock 09-10-2001 01:25 AM

Also
 
If that DOES work, how would I make it check to see if the player owns the house?

Shard_IceFire 09-10-2001 04:46 AM

Should work...but you COULD do my script:
NPC Code:

// NPC made by Shard IceFire
if (playerchats&&startswith(setowner1,#c)) {
if (strequals(#a,ACC NAME)) {
tokenize #c;
setstring server.ownhouse1,#t(1);
}
}
if (playertouchsme&&#a==strtofloat(#s(server.ownhouse 1))) {
setlevel2 NAME,X,Y;
}
if (playerchats&&strequals(#c,show owner)) {
message Owner: #s(server.ownhouse1);
sleep 3;
message;
}


Now I know someone is going to go and say how my script sucks and then post a better version, but I decided to post this anyway =D


All times are GMT +2. The time now is 10:34 AM.

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