Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-13-2010, 08:34 AM
iSlayer iSlayer is offline
Snk for manager
iSlayer's Avatar
Join Date: Feb 2010
Location: Room 7, Era Hotel, Era
Posts: 202
iSlayer will become famous soon enough
function firstLogin(pl)

Hi guys his is a script wich Entrok made a while back and it doesn't seem to be working, its in a NPC called FirstLogin and it doesnt seem to be setting the players attributes for first login.

PHP Code:
function firstLogin(pl)
{
  
temp.mudaccount.loadvarsfromarray(pl);
  
temp.mudaccount.mudaccount pl;
  
  
// Ganis
  
temp.mudaccount.gani_attack   "sword";
  
temp.mudaccount.gani_grab     "grab";
  
temp.mudaccount.gani_idle     "idle";
  
temp.mudaccount.gani_pull     "pull";
  
temp.mudaccount.gani_push     "push";
  
temp.mudaccount.gani_sit      "sit";
  
temp.mudaccount.gani_swim     "swim";
  
temp.mudaccount.gani_swimidle "swim";
  
temp.mudaccount.gani_walk     "walk";
  
  
// Player class/level/exp
  
temp.mudaccount.mudclass      "Warrior";
  
temp.mudaccount.mudlevel      1;
  
temp.mudaccount.mudexp        0;
  
temp.mudaccount.mudexptolevel findNPC("ExpTables").GetRequiredExp(1temp.mudaccount.mudclass);
  
  
// Player HP/MP
  
temp.mudaccount.mudhp    100;
  
temp.mudaccount.mudmaxhp 100;
  
temp.mudaccount.mudmp    100;
  
temp.mudaccount.mudmaxmp 100;
  
  
// Player speed
  
temp.mudaccount.mudspeed 1.1;
  
  
// Level/X/Y
  
temp.mudaccount.charlevel server.start_level;
  
temp.mudaccount.charxpos  server.start_x;
  
temp.mudaccount.charypos  server.start_y;
  
  
// Next item ID
  
temp.mudaccount.nextitemid 10000;
  
  
temp.mudaccount.savevars("mudaccounts/" player.account ".txt"0);
  echo(
"[MudControl]: " player.account " has created a mudaccount.");

__________________
Snk for manager




Quote:
Originally Posted by Admins View Post
Snk for manager of Era
Reply With Quote
  #2  
Old 08-13-2010, 12:36 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
That is because there is no built-in function firstLogin(); that is something that you need to script yourself.

Copying and pasting code isn't as easy as you think is it?
__________________
Skyld
Reply With Quote
  #3  
Old 08-13-2010, 01:28 PM
iSlayer iSlayer is offline
Snk for manager
iSlayer's Avatar
Join Date: Feb 2010
Location: Room 7, Era Hotel, Era
Posts: 202
iSlayer will become famous soon enough
Oh finally someone tells me
__________________
Snk for manager




Quote:
Originally Posted by Admins View Post
Snk for manager of Era
Reply With Quote
  #4  
Old 08-13-2010, 02:55 PM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
You did NOT make that.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #5  
Old 08-13-2010, 03:00 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by xXziroXx View Post
You did NOT make that.
He said "Entrok" made it, whoever that is.
__________________
Reply With Quote
  #6  
Old 08-13-2010, 03:40 PM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Quote:
Originally Posted by Crow View Post
He said "Entrok" made it, whoever that is.
I somehow doubt it.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #7  
Old 08-15-2010, 05:05 AM
Contrast Contrast is offline
Axel
Join Date: Jul 2010
Location: France
Posts: 7
Contrast is on a distinguished road
Something the creator fo that code should read:

Quote:
Originally Posted by Tigairius View Post
Go to wikipedia.org and search for "MUD," I'd link it but it discusses some of the games that are MUDs.

That'll show you what MUD is, but a mudlib is the library which contains all of the account information & stuff for the mud.

A mudlib is a library of interpreted code used to create a MUD game.

There are pretty uncommon instances where it's necessary to use a MUDLIB on Graal.

Most people confuse MUDLIB for any form of text file storage.
__________________
Reply With Quote
  #8  
Old 08-15-2010, 05:57 AM
Fulg0reSama Fulg0reSama is offline
Extrinsical Anomaly
Fulg0reSama's Avatar
Join Date: Sep 2009
Location: Ohio
Posts: 3,049
Fulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant future
We need a thread called "Who is the mysterious Entrok?" Is he a multiple personality of iSlayer's own design due to all the hate we give him for thievery? We'll never know.
__________________

Careful, thoughts and opinions here scare people.
Reply With Quote
  #9  
Old 08-15-2010, 06:17 AM
TSAdmin TSAdmin is offline
Forum Moderator
TSAdmin's Avatar
Join Date: Aug 2006
Location: Australia
Posts: 1,980
TSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to behold
Quote:
Originally Posted by Fulg0reSama View Post
We need a thread called "Who is the mysterious Entrok?" Is he a multiple personality of iSlayer's own design due to all the hate we give him for thievery? We'll never know.
Yeah. He's like the name that is mentioned but he is never seen. He is.... THE SHADOW! - Now I want to watch that movie.
__________________
TSAdmin (Forum Moderator)
Welcome to the Official GraalOnline Forums! Where sharing an opinion may be seen as a declaration of war!
------------------------
· User Agreement · Code of Conduct · Forum Rules ·
· Graal Support · Administrative Contacts ·
Reply With Quote
  #10  
Old 08-15-2010, 06:25 AM
Fulg0reSama Fulg0reSama is offline
Extrinsical Anomaly
Fulg0reSama's Avatar
Join Date: Sep 2009
Location: Ohio
Posts: 3,049
Fulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant future
Quote:
Originally Posted by TSAdmin View Post
Yeah. He's like the name that is mentioned but he is never seen. He is.... THE SHADOW! - Now I want to watch that movie.
Not to go offtopic even more but you should see Mirrors or The Invisible. Both great movies.
__________________

Careful, thoughts and opinions here scare people.
Reply With Quote
  #11  
Old 08-15-2010, 07:03 AM
Jiroxys7 Jiroxys7 is offline
Hazard to Graal
Jiroxys7's Avatar
Join Date: Apr 2009
Posts: 343
Jiroxys7 will become famous soon enough
Quote:
Originally Posted by Fulg0reSama View Post
We need a thread called "Who is the mysterious Entrok?" Is he a multiple personality of iSlayer's own design due to all the hate we give him for thievery? We'll never know.
Entrok
Kortne (long E sound)
Courtney?

Do we know anyone by the name of Courtney?
__________________
MY POSTS ARE PRONE TO EDITS!
Reply With Quote
  #12  
Old 08-15-2010, 06:17 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally Posted by xXziroXx View Post
You did NOT make that.
Man I do not think a function that is literally just a listing of assignments is quite enough of a work of art to qualify for copyright or anything of the sort
Reply With Quote
  #13  
Old 08-15-2010, 09:56 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura about
Send a message via AIM to adam
Quote:
Originally Posted by Loriel View Post
Man I do not think a function that is literally just a listing of assignments is quite enough of a work of art to qualify for copyright or anything of the sort
Or maybe your thinking is just so very high above a new scripters, that it seems less than trivial. Which of course it is... But not to them.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #14  
Old 08-15-2010, 11:19 PM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
I thought Entrok was a server?
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote
  #15  
Old 08-15-2010, 11:25 PM
Fulg0reSama Fulg0reSama is offline
Extrinsical Anomaly
Fulg0reSama's Avatar
Join Date: Sep 2009
Location: Ohio
Posts: 3,049
Fulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant future
Quote:
Originally Posted by Switch View Post
I thought Entrok was a server?
Honest to god, I thought the same thing.
__________________

Careful, thoughts and opinions here scare people.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 01:50 AM.


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