DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • July 18, 2019, 03:09:13 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Resource Pages

Pages: [1]   Go Down
Author Topic: Events NPC interaction and Miracles  (Read 3720 times)
0 Members and 1 Guest are viewing this topic.
« on: July 01, 2004, 08:54:33 PM »

ok this isnt a Mod but more of a trick you can do on your servers to do some interesting things.

create an extra account verify it then delete the Display Name, Title, Email, Gold Etc. all field null or 0 excpet for Level and Hp which is set to god levels. Also ste it for an Level 3 User.

What this account does is allow for the posting of events W/O a display name as the name is blank and it looks like a server created message

i.e. ::`7A Great shadow darkens the square for a moment as `#The Green Dragon `7flies past overhead, The Darkness lasts only a moment as the beast was headed back to the forest.
A Great shadow darkens the square for a moment as The Green Dragon flies past overhead, The Darkness lasts only a moment as the beast was headed back to the forest.

Also by doing color formating you can Mimick the NPCs talking to interact with the players, i.e. having seth say in the "converse with patrons" area to buy a drink if your taking up room, or other such comments. Also can have random wandering visitors to your town as well.

Also by just typing a basic action events can be made to happen when you wish them.
i.e. ::it begins to rain. or ::the earth trembles for miles around, and for those who play god in thier villages :: a mystical vortex appears through which [admin] steps out into the square

and on a more evil note, you can impersonate players do an emote but format the colors and quatations exactly and it will look as if the player actually said it, only difference is you cannot click on the name to get player info. I did this to one of my  admins, we had a problem player who was just obnoxious, i made it look like he was able to get into the grotto, that was a good laugh Smiley and only once in general players, on of my rl friends sent out emaisl to every player telling them it was my birthday the next day, after i found out she was responsible i had her saying something silly in the villiage square.

Really its a lot of fun with alot of potential if its played around with
« Reply #1 on: July 01, 2004, 10:53:41 PM »

You could code some random events into your village.php file as well.  Then you wouldn't have to be online all the time.
« Reply #2 on: July 02, 2004, 05:21:08 AM »

true, the NPC interaction, the wierd things i do on whims, and just general fun with miracles, are not things that can be coded, I know there are mods for weather, and other things can be coded in but having the NPCs interact in the conversations and one time events, this is easier. Besides its something for Admins to have fun with, not something required to do. My examples where nothing more then examples
« Reply #3 on: July 02, 2004, 08:41:01 AM »

You can go one step beyond that as well, which has been mentioned here before, but if you add a field to the accounts database called "hidden" (for example), have it default to 0, and set it for accounts you do not want listed anywhere.
Then in the pages that list user accounts (list.php, pvp.php, dag.php) modify the sql query to only list results with a hidden of 0.
That way nobody will even know this account exists, and it won't be tallied in with the total users.
« Reply #4 on: July 02, 2004, 11:24:05 AM »

wonderful addition to this, thank you, thats something i will do later Smiley  i did have my village idiot asking "who is the person with no name", and somehow send it an email asking "do you have a name" after i had posted a few events.

would anyone like my villiage idiot, free to a good home!
« Reply #5 on: July 12, 2004, 04:44:41 PM »

ok i tried to add this to Dag.php problem is it feeds out ONLY the name of the person checking the list,bounty or no bounty, it may have done this beforehand my op for list is as follows

if ($HTTP_GET_VARS['op']=="list"){
   output("Dag fishes a small leather bound book out from under his cloak, flips through it to a certain page and holds it up for you to see.`n`n");
   output("`c`bThe Bounty List`b`c`n");
   $$sql = "SELECT name,alive,sex,level,laston,loggedin,bounty FROM accounts WHERE bounty>0 AND hidden=0 ORDER BY bounty DESC";
   $result = db_query($sql) or die(sql_error($sql));
   output("<table border=0 cellpadding=2 cellspacing=1 bgcolor='#999999'>",true);
   output("<tr class='trhead'><td><b>Bounty Amount</b></td><td><b>Level</b></td><td><b>Name</b></td><td><b>Location</b></td><td><b>Sex</b></td><td><b>Last on</b></tr>",true);
      $row = db_fetch_assoc($result);
      output("<tr class='".($i%2?"trdark":"trlight")."'><td>",true);
      if ($session['user']['loggedin']) output("</a>",true);
      $loggedin=(date("U") - strtotime($row[laston]) < getsetting("LOGINTIMEOUT",900) && $row[loggedin]);
         ?"`3Boar's Head Inn`0"
            :"`3The Fields`0"
      $laston=round((strtotime("0 days")-strtotime($row[laston])) / 86400,0)." days";
      if (substr($laston,0,2)=="1 ") $laston="1 day";
      if (date("Y-m-d",strtotime($row[laston])) == date("Y-m-d")) $laston="Today";
      if (date("Y-m-d",strtotime($row[laston])) == date("Y-m-d",strtotime("-1 day"))) $laston="Yesterday";
      if ($loggedin) $laston="Now";

any help figuring this mystery out would be appreciated
Pages: [1]   Go Up
Jump to:  

DragonPrime Notices
Play LoGD on Dragonprime

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
114 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search