• 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!

Xikini's Free Scripting Service. [0.3.7 & (0.3.6/0.4)]

Status
Not open for further replies.

Xikini

I whore myself out for likes
Senator
Joined
Nov 17, 2010
Messages
6,830
Solutions
586
Reaction score
5,413
Doing quick (30 min or less) scripts for [0.3.7 & (0.3.6/0.4)]
I am not here to fix your broken scripts, although I will give advice if requested.
I am here for script requests of scripts not already available on the forum.
If you require support for your scripting issues please make a thread in the support section.

For clarity's sake,
I will script actionscripts, creaturescripts, globalevents, talkactions, movements, npcs for you.
I will not script spells, weapons, raids or monster scripts.
Additionally, source editing, websites and database queries are a no go as well.

Code:
How to make shorter links to posts.
https://otland.net/threads/234306/page-14#post-2330703
 
Last edited:
Ok lets try this ^^ so im trying to get a VIP script for TFS 0.4 but i already have VIP in my database & site its called 'vip_time' i just want a VIP item with effect like it will say 'VIP!' over the player ;d im guessing action + creaturescript + globalevents?
But when does it say this?
When you use the item?
When you wear the item?
When the character dies?
 
But when does it say this?
When you use the item?
When you wear the item?
When the character dies?
i was kinda hoping you could make a script for it haha, but i remembered i wasnt gonna add a vip item ;d i just need a creature script for 65% more exp if vip but in my database its called 'vip_time' could you help me make it? ^^
 
Could you also make me a script that makes the server restart with msg Warning please log off in a safe place server will restart in 3....2....1... minutes
And the script restarts the server every 6 hrs? Ty
 
Hmm.. I thought it would work no problem putting it into the local config. Not sure why it shouldn't/wouldn't work.
This is the one I tested, and it is fully functional. o_O :oops:
Code:
-- <action actionid="45719" event="script" value="because_reasons.lua"/>

local cfg = {
   coal_basin_pos = {x = 1320, y = 1336, z = 7, stackpos = 2},
   require_item = 1988,
   give_item = 2386
}
  
function onUse(cid, item, fromPosition, itemEx, toPosition)

   tilePos = {x = 1321, y = 1335, z = 7}
   standPos = getCreaturePosition(cid)
   if (standPos.x ~= tilePos.x or standPos.y ~= tilePos.y or standPos.z ~= tilePos.z) then
     doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
     doPlayerAddSoul(cid, -5)
     if getCreatureHealth(cid) > 500 then
       doCreatureAddHealth(cid, -500)
     else
       doCreatureAddHealth(cid, -(getCreatureHealth(cid) - 1))
     end
     return doPlayerSendCancel(cid, "I require your feet over there. Because reasons.")
   end
  
   if getPlayerSoul(cid) >= 20 then
     if getTileItemById(cfg.coal_basin_pos, cfg.require_item).uid > 1 then
       doPlayerAddSoul(cid, 20)
       doRemoveItem(getTileItemById(cfg.coal_basin_pos, cfg.require_item).uid, 1)
       doCreateItem(cfg.give_item, 1, cfg.coal_basin_pos)
       doCreatureSay(cid, "Magical Transformations!", TALKTYPE_ORANGE_1, false, 0, cfg.coal_basin_pos)
       doCreatureSay(cid, "Oooh! Fireworks!", TALKTYPE_ORANGE_1, false, 0, cfg.coal_basin_pos)
       doSendMagicEffect(cfg.coal_basin_pos, CONST_ME_FIREWORK_RED)
     else
       return doPlayerSendCancel(cid, "Where my items? :(... No seriously. Items or die.  plz")
     end
   else
     return doPlayerSendCancel(cid, "I require soul to transform items.")
   end
  
   return true
end
works perfect just one isue paleyr with standing on good tile and clicks statue hes soul doesnt get removed
 
doPlayerAddSoul(cid, 20)
doPlayerAddSoul(cid, -20)
Sorry, leftover from testing. :rolleyes:
amazing mate ;) thank you :)
can you meybe add more nice effects around statue is clicked ?

can i request a script for 0.4

if player kills 5 players he recieves message and storage and letter with text in it or book (like mission done)
 
Last edited by a moderator:
Hi could you script a utevo res spell for me? But max of 3 monsters and only vocation id 9 can use it 500 exaust lvl 200 ty
 
xikini i asked for a rush event script if you can help
I have no idea what a 'rush event script' is.
can i request a script for 0.4

if player kills 5 players he recieves message and storage and letter with text in it or book (like mission done)
I have no way to test this.
Code:
function onKill(cid, target, damage, flags)

   if getPlayerStorageValue(cid, 45001) == 6 then
     return true
   elseif not isPlayer(target) then
     return true
   end
  
   if getPlayerStorageValue(cid, 45001) < 0 then
     setPlayerStorageValue(cid, 45001, 0)
   end
  
   setPlayerStorageValue(cid, 45001, getPlayerStorageValue(cid, 45001) + 1)

   if getPlayerStorageValue(cid, 45001) == 5 then
     setPlayerStorageValue(cid, 45001, getPlayerStorageValue(cid, 45001) + 1)
     doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have received a reward.")
     local book = doPlayerAddItem(cid, 2598, 1)
     doSetItemText(book, "Xikini was here.")
   end
  
   return true
end
Hi could you script a utevo res spell for me? But max of 3 monsters and only vocation id 9 can use it 500 exaust lvl 200 ty
Sorry, I don't work with spells.
 
Could you make me a promotion npc that promotes a player to vocation id 9? ( name of vocation is warlock) and lvl 8 and above can promote and it takes 10mil cc to promote thx
 
Could you write to me script that works like that:
On rookgard everyone have just citizen outfit, but when they choose vocation for example palladin the citizen outfit will be removed and they got pernament hunter outfit and the outfit from citizen to hunter will be changed automaticly.
 
Could you write to me script that works like that:
On rookgard everyone have just citizen outfit, but when they choose vocation for example palladin the citizen outfit will be removed and they got pernament hunter outfit and the outfit from citizen to hunter will be changed automaticly.
The problem with your idea, is that there needs to be some sort of default outfit, but you can try this.
(If it doesn't work, you'll have to go to support and ask how you can give a storage value to a player at the time of character creation.)

Set-up your outfits.xml to something similar.

Code:
  <outfit id="1" premium="yes" default="0" quest="45001">
     <list gender="0" lookType="136" name="Citizen">   </list>
     <list gender="1" lookType="128" name="Citizen">   </list>
   </outfit>

   <outfit id="2" premium="yes" default="0" quest="45002">
     <list gender="0" lookType="137" name="Hunter">   </list>
     <list gender="1" lookType="129" name="Hunter">   </list>
   </outfit>
login.lua
Code:
function onLogin(cid)
   if getPlayerLastLoginSaved(cid) < 0 or nil then
     setPlayerStorageValue(cid, 45001, 1)
   end
.
.
.
rest of code

Then whenever the character get's their vocation change do this
Code:
local outfit = 127
if getPlayerSex(cid) == 0 then
   outfit = 137
else
   outfit = 129
end
doCreatureChangeOutfit(cid, outfit)
setPlayerStorageValue(cid, 45002, 1)
setPlayerStorageValue(cid, 45001, -1)
Could you make me a promotion npc that promotes a player to vocation id 9? ( name of vocation is warlock) and lvl 8 and above can promote and it takes 10mil cc to promote thx
There is millions of promotion scripts on OtLand.
Please use the search function.
 
Last edited:
Status
Not open for further replies.
Back
Top