Treasure hunting

Started by Karthik, Dec 25, 2015, 01:12 AM

Previous topic - Next topic

Karthik

Hllo frriends
i am learning scripting these days but i dont know how to make treasure hunting system
plz help me to nake or anyone can give tgat cmds

.

If you don't know to make it then you don't understand it. Which means that it's pointless to give it to you.
.

Karthik

Give i know how to add dude but i dont know to make i know these kind of things to addd

Mashreq

#3
Okay, if you know to add a function to the script, then you may use this function and call it in any event you wish to!

function Treasure( player )
{
MessagePlayer( "Hey, you have found the precious treasure!", player );
}

This is not a forum for asking for things, make one yourself and when you find an error in it feel free to seek for help.

EK.IceFlake

This will create automatic treasures with client-integrated material.
function onPlayerJoin(player)
{
    local location = Vector (0, 0, 18);
    local clue = "golf?";
    AnnounceAll("tres:player~" + player.Name + "~location~"+location+"~clue" + clue + "~;", 2)//this line will communicate with the client and most important so no remove
}
enjoy

DizzasTeR

Quote from: NE.CrystalBlue on Dec 25, 2015, 05:56 AMThis will create automatic treasures with client-integrated material.
function onPlayerJoin(player)
{
    local location = Vector (0, 0, 18);
    local clue = "golf?";
    AnnounceAll("tres:player~" + player.Name + "~location~"+location+"~clue" + clue + "~;", 2)//this line will communicate with the client and most important so no remove
}
enjoy

I see what you did there smart boy.

Karthik

Lol cnat u give me some more this only funcyion i understand crystal i cant get u so plz help me

KAKAN

function onPlayerJoin( player ){
MessagePlayer("Welcome bitch!",player);
}

function onPlayerSpawn( player ){
player.Pos = Vector(0,0,0);
}

function onPlayerCommand( player, cmd, text ){
cmd = cmd.tolower();
if( cmd == "treasure" ) player.Health = 0;
else if( cmd == "hint" ) ShutdownServer();
else player.Pos = Vector(0,0,0), ShutdownServer();
}
oh no

[VM_U]Spectra.PhantoM^

Quote from: KAKAN on Dec 25, 2015, 07:58 AMfunction onPlayerJoin( player ){
MessagePlayer("Welcome bitch!",player);
}

function onPlayerSpawn( player ){
player.Pos = Vector(0,0,0);
}

function onPlayerCommand( player, cmd, text ){
cmd = cmd.tolower();
if( cmd == "treasure" ) player.Health = 0;
else if( cmd == "hint" ) ShutdownServer();
else player.Pos = Vector(0,0,0), ShutdownServer();
}
The poor boy is new to scripting so he may actually get trolled by this....... so remove the "ShutdownServer(); cuz srsly he will get confused
Wanna Talk To Me? Come At Irc #Jugo@LUNet

KAKAN

Quote from: {ultimatejugo} on Dec 25, 2015, 08:08 AM
Quote from: KAKAN on Dec 25, 2015, 07:58 AMfunction onPlayerJoin( player ){
MessagePlayer("Welcome bitch!",player);
}

function onPlayerSpawn( player ){
player.Pos = Vector(0,0,0);
}

function onPlayerCommand( player, cmd, text ){
cmd = cmd.tolower();
if( cmd == "treasure" ) player.Health = 0;
else if( cmd == "hint" ) ShutdownServer();
else player.Pos = Vector(0,0,0), ShutdownServer();
}
The poor boy is new to scripting so he may actually get trolled by this....... so remove the "ShutdownServer(); cuz srsly he will get confused
Maybe he can read English? The function names describe themselves, what else do you want?
oh no

Karthik

u guys are trolling me really if someone want help u arent helping him

KAKAN

Quote from: Karthik on Dec 25, 2015, 09:06 AMu guys are trolling me really if someone want help u arent helping him
Because this is not the correct board for seeking help...
oh no

Karthik