Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-10-2001, 01:19 AM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
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?
Reply With Quote
  #2  
Old 09-10-2001, 01:25 AM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
Also

If that DOES work, how would I make it check to see if the player owns the house?
Reply With Quote
  #3  
Old 09-10-2001, 04:46 AM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
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
__________________

-=Shard IceFire=-
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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