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

[request] Npc and scripts

alkoholic

New Member
Joined
Nov 17, 2008
Messages
7
Reaction score
0
sorry if some word is wrong its that i am brazilian

i need 1 boat npc that carry players without premium...

and 1 item that when player click use , he become premium ( id:6279)

and 1 npc that sell things with scarab coins

thanks to all players of this forun... this forun it is the best that i have met .. and sorry for the wrong word , i hope that
someone understands
 
Boat NPC:
in the *.xml file of the boat NPC, after location add ',false'
eg.
Code:
<parameter key="travel_destinations" value="varak,331,509,10,50,false;jorvik,420,256,6,50,false;"/>

Item:
Code:
local config = {
	itemId = 6279,
	days = 30
	}
function onUse(cid, item)
	if item.itemid == config.itemId then
		doPlayerAddPremiumDays(cid, config.days)
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_GREEN)
		doRemoveItem(item.uid)
	end
	return TRUE
end
 
hey thank you very much.. and the ohter npc? did you do?

and the item? is this an action? what do i put in actions.xml?

help me pliz
 
<action itemid="6279" script="other/item pacc.lua"/>

The other NPC needs the source edit I guess, to register new money type.
 
a ok... and thank for the others scripts...

after you relax , if you want to help me , white a private messenger pliz

i will wait an good man to help me
 
Back
Top