• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling c++ prob

Rachaw

Experienced Member
Joined
Oct 17, 2009
Messages
602
Reaction score
1
Location
Tha Sweden
I need a code to past into my function list


In script like


function ------
local config ={

local mana = 1337
}

mana (lose, 1) --player loses 1 mana so he has 1336
hitpoint (lose, 3) --player loses 3 mana so he has 1334

-- add

mana (add, 600) -- player gets 600 mana+
hitpoints (add,) 240 player gets 600 hp+


regards rach

rep++
 
That function already exist, i bet that you think that it only adds mana... but you can give negative numbers to that function.

Add:
doCreatureAddMana(cid, 100)

Remove:
doCreatureAddMana(cid, -100)
 
Back
Top